Interface MADDistributionEstimator<D extends Distribution>

    • Method Detail

      • estimateFromMedianMAD

        D estimateFromMedianMAD​(double median,
                                double mad)
        General form of the parameter estimation
        Parameters:
        median - Median value
        mad - Median absolute deviation from median
        Returns:
        Estimated distribution
      • computeMAD

        static double computeMAD​(double[] data,
                                 int len,
                                 double median,
                                 double[] scratch)
        Compute the median absolute deviation from median.
        Parameters:
        data - Input data
        len - Length of input data to use
        median - Median of input data
        scratch - Scratch space, must be at least length len
        Returns:
        MAD
      • computeMAD

        static double computeMAD​(double[] x,
                                 int len,
                                 double median)
        Compute the median absolute deviation from median.
        Parameters:
        x - Input data will be modified
        len - Length where x is valid
        median - Median value.
        Returns:
        Median absolute deviation from median.