Class TrimmedEstimator<D extends Distribution>

  • Type Parameters:
    D - Distribution type
    All Implemented Interfaces:
    DistributionEstimator<D>

    public class TrimmedEstimator<D extends Distribution>
    extends java.lang.Object
    implements DistributionEstimator<D>
    Trimmed wrapper around other estimators. Sorts the data, trims it, then analyzes it using another estimator.
    Since:
    0.6.0
    Author:
    Erich Schubert
    • Constructor Detail

      • TrimmedEstimator

        public TrimmedEstimator​(DistributionEstimator<D> inner,
                                double trim)
        Constructor.
        Parameters:
        inner - Inner estimator.
        trim - Trimming parameter.
    • Method Detail

      • toPrimitiveDoubleArray

        public static <A> double[] toPrimitiveDoubleArray​(A data,
                                                          NumberArrayAdapter<?,​A> adapter)
        Local copy, see ArrayLikeUtil.toPrimitiveDoubleArray.
        Parameters:
        data - Data
        adapter - Adapter
        Returns:
        Copy of the data, as double[]
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object