it.unimi.dsi.stat
Class Jackknife.AbstractStatistic
java.lang.Object
it.unimi.dsi.stat.Jackknife.AbstractStatistic
- All Implemented Interfaces:
- Jackknife.Statistic
- Enclosing class:
- Jackknife
public abstract static class Jackknife.AbstractStatistic
- extends Object
- implements Jackknife.Statistic
An abstract statistic with a template method that
accepts an array of doubles, returns an array of doubles and handles the data conversions that
are necessary to call Jackknife.Statistic.compute(BigDecimal[], MathContext)
. Useful if you do not
want to fiddle with BigDecimal
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jackknife.AbstractStatistic
public Jackknife.AbstractStatistic()
compute
public abstract double[] compute(double[] sample)
compute
public BigDecimal[] compute(BigDecimal[] bigSample,
MathContext unused)
- Description copied from interface:
Jackknife.Statistic
- Computes the statistic.
Note that the BigDecimal
instances passed to this method are guaranteed to
have a scale set by the caller. If you have to perform divisions,
please use the supplied MathContext
.
- Specified by:
compute
in interface Jackknife.Statistic
- Parameters:
bigSample
- the samples over which the statistic must be computed.unused
- the mathematical context to be used when dividing big decimals.
- Returns:
- the resulting statistic.