public static class ScalarDataDistribution.CDF extends ScalarDataDistribution implements CumulativeDistributionFunction<java.lang.Double>
ScalarDataDistribution.CDF, ScalarDataDistribution.Estimator, ScalarDataDistribution.PMF
DefaultDataDistribution.DefaultFactory<DataType>, DefaultDataDistribution.WeightedEstimator<KeyType>
AbstractMutableDoubleMap.Entry<KeyType>, AbstractMutableDoubleMap.SimpleEntry<KeyType>, AbstractMutableDoubleMap.SimpleEntrySet<KeyType>, AbstractMutableDoubleMap.SimpleIterator<KeyType>
ScalarMap.Entry<KeyType>
DEFAULT_INITIAL_CAPACITY, total
map
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, getVariance
clear, getMeanValue, getTotal, increment, set
fromInfiniteVector, getDomain, getDomainSize, getEntropy, getFraction, getLogFraction, getMaxValue, getMinValue, sample, sample, sampleInto, toInfiniteVector
asMap, compact, entrySet, get
containsKey, decrement, decrement, decrementAll, decrementAll, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, increment, incrementAll, incrementAll, isEmpty, keySet, setAll, setAll, size
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMeanAsDouble, getVariance
getMean
sample, sample, sampleInto
asMap, decrement, decrement, decrementAll, decrementAll, entrySet, get, increment, incrementAll, incrementAll, setAll, setAll
containsKey, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, isEmpty, keySet, size
public 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()
AbstractCloneableSerializable
Object
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 CloneableSerializable
clone
in class ScalarDataDistribution
public java.lang.Double getMinSupport()
UnivariateDistribution
getMinSupport
in interface UnivariateDistribution<java.lang.Double>
getMinSupport
in class ScalarDataDistribution
public java.lang.Double getMaxSupport()
UnivariateDistribution
getMaxSupport
in interface UnivariateDistribution<java.lang.Double>
getMaxSupport
in class ScalarDataDistribution
public ScalarDataDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface UnivariateDistribution<java.lang.Double>
getCDF
in class ScalarDataDistribution
public java.lang.Double evaluate(java.lang.Double input)
Evaluator