Statistics.LaplaceFit Method

void LaplaceFit(TVec X, ref Double mu, ref Double b)

Calculate parameters for Laplace distributed values.

#NameDescription
1XStores data which is assumed to be Laplace distributed.
2muReturn Laplace distribution parameter estimator M.
3bReturn Laplace distribution parameter estimator b.

Result: stored in self (calling object)

Examples
using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples;
{
    private void Example()
    {
        Vector Data = new Vector(100);
        StatRandom.RandomLaplace(3, 0.2, Data,-1);
        double mu, b;
        Statistics.LaplaceFit(Data, out mu, out b);
        // mu approx 3.0
        // b approx 0.2
    }
}
See Also: StatRandom.RandomLaplace