public static class ScalarDataDistribution.CDF extends ScalarDataDistribution implements CumulativeDistributionFunction<java.lang.Double>
ScalarDataDistribution.CDF, ScalarDataDistribution.Estimator, ScalarDataDistribution.PMFDefaultDataDistribution.DefaultFactory<DataType>, DefaultDataDistribution.WeightedEstimator<KeyType>AbstractMutableDoubleMap.Entry<KeyType>, AbstractMutableDoubleMap.SimpleEntry<KeyType>, AbstractMutableDoubleMap.SimpleEntrySet<KeyType>, AbstractMutableDoubleMap.SimpleIterator<KeyType>ScalarMap.Entry<KeyType>DEFAULT_INITIAL_CAPACITY, totalmap| Constructor and Description |
|---|
CDF()
Default constructor
|
CDF(java.lang.Iterable<? extends java.lang.Number> data)
Creates a new instance of PMF
|
CDF(ScalarDataDistribution other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
ScalarDataDistribution.CDF |
clone()
This makes public the clone method on the
Object class and
removes the exception that it throws. |
java.lang.Double |
evaluate(java.lang.Double input)
Evaluates the function on the given input and returns the output.
|
ScalarDataDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
java.lang.Double |
getMaxSupport()
Gets the minimum support (domain or input) of the distribution.
|
java.lang.Double |
getMinSupport()
Gets the minimum support (domain or input) of the distribution.
|
getEstimator, getMean, getMeanAsDouble, getProbabilityFunction, getVarianceclear, getMeanValue, getTotal, increment, setfromInfiniteVector, getDomain, getDomainSize, getEntropy, getFraction, getLogFraction, getMaxValue, getMinValue, sample, sample, sampleInto, toInfiniteVectorasMap, compact, entrySet, getcontainsKey, decrement, decrement, decrementAll, decrementAll, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, increment, incrementAll, incrementAll, isEmpty, keySet, setAll, setAll, sizeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMeanAsDouble, getVariancegetMeansample, sample, sampleIntoasMap, decrement, decrement, decrementAll, decrementAll, entrySet, get, increment, incrementAll, incrementAll, setAll, setAllcontainsKey, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, isEmpty, keySet, sizepublic CDF()
public CDF(ScalarDataDistribution other)
other - ScalarDataDistribution to copypublic CDF(java.lang.Iterable<? extends java.lang.Number> data)
data - Data used to create the PMFpublic ScalarDataDistribution.CDF clone()
AbstractCloneableSerializableObject class and
removes the exception that it throws. Its default behavior is to
automatically create a clone of the exact type of object that the
clone is called on and to copy all primitives but to keep all references,
which means it is a shallow copy.
Extensions of this class may want to override this method (but call
super.clone() to implement a "smart copy". That is, to target
the most common use case for creating a copy of the object. Because of
the default behavior being a shallow copy, extending classes only need
to handle fields that need to have a deeper copy (or those that need to
be reset). Some of the methods in ObjectUtil may be helpful in
implementing a custom clone method.
Note: The contract of this method is that you must use
super.clone() as the basis for your implementation.clone in interface DataDistribution<java.lang.Double>clone in interface CloneableSerializableclone in class ScalarDataDistributionpublic java.lang.Double getMinSupport()
UnivariateDistributiongetMinSupport in interface UnivariateDistribution<java.lang.Double>getMinSupport in class ScalarDataDistributionpublic java.lang.Double getMaxSupport()
UnivariateDistributiongetMaxSupport in interface UnivariateDistribution<java.lang.Double>getMaxSupport in class ScalarDataDistributionpublic ScalarDataDistribution.CDF getCDF()
UnivariateDistributiongetCDF in interface UnivariateDistribution<java.lang.Double>getCDF in class ScalarDataDistributionpublic java.lang.Double evaluate(java.lang.Double input)
Evaluator