Class UniformMinMaxEstimator
- java.lang.Object
-
- elki.math.statistics.distribution.estimator.UniformMinMaxEstimator
-
- All Implemented Interfaces:
DistributionEstimator<UniformDistribution>
public class UniformMinMaxEstimator extends java.lang.Object implements DistributionEstimator<UniformDistribution>
Estimate the uniform distribution by computing min and max.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UniformMinMaxEstimator.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description static UniformMinMaxEstimator
STATIC
The most naive estimator possible: uses minimum and maximum.
-
Constructor Summary
Constructors Modifier Constructor Description private
UniformMinMaxEstimator()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution
estimate(double min, double max)
Estimate parameters from minimum and maximum observed.<A> UniformDistribution
estimate(A data, NumberArrayAdapter<?,A> adapter)
General form of the parameter estimationUniformDistribution
estimate(DoubleMinMax mm)
Estimate parameters from minimum and maximum observed.java.lang.Class<? super UniformDistribution>
getDistributionClass()
Get the class that is produced by the estimator.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.math.statistics.distribution.estimator.DistributionEstimator
estimate
-
-
-
-
Field Detail
-
STATIC
public static final UniformMinMaxEstimator STATIC
The most naive estimator possible: uses minimum and maximum.
-
-
Method Detail
-
estimate
public <A> UniformDistribution estimate(A data, NumberArrayAdapter<?,A> adapter)
Description copied from interface:DistributionEstimator
General form of the parameter estimation- Specified by:
estimate
in interfaceDistributionEstimator<UniformDistribution>
- Parameters:
data
- Data setadapter
- Number array adapter- Returns:
- Estimated distribution
-
estimate
public UniformDistribution estimate(DoubleMinMax mm)
Estimate parameters from minimum and maximum observed.- Parameters:
mm
- Minimum and Maximum- Returns:
- Estimation
-
estimate
public Distribution estimate(double min, double max)
Estimate parameters from minimum and maximum observed.- Parameters:
min
- Minimummax
- Maximum- Returns:
- Estimation
-
getDistributionClass
public java.lang.Class<? super UniformDistribution> getDistributionClass()
Description copied from interface:DistributionEstimator
Get the class that is produced by the estimator.- Specified by:
getDistributionClass
in interfaceDistributionEstimator<UniformDistribution>
- Returns:
- Distribution class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-