Class Jackknife.AbstractStatistic

    • Constructor Detail

      • AbstractStatistic

        public AbstractStatistic()
    • Method Detail

      • 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.