Class Jackknife.AbstractStatistic

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract double[] compute​(double[] sample)  
      java.math.BigDecimal[] compute​(java.math.BigDecimal[] bigSample, java.math.MathContext unused)
      Computes the statistic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractStatistic

        public AbstractStatistic()
    • Method Detail

      • compute

        public abstract double[] compute​(double[] sample)
      • compute

        public java.math.BigDecimal[] compute​(java.math.BigDecimal[] bigSample,
                                              java.math.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.