Package org.matheclipse.core.interfaces
Interface IDiscreteDistribution
-
- All Superinterfaces:
IDistribution
public interface IDiscreteDistribution extends IDistribution
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intgetSupportLowerBound(IExpr discreteDistribution)The lower bound of the support is 0 by default.default intgetSupportUpperBound(IExpr discreteDistribution)The upper bound of the support is positive infinity, regardless of the parameter values.default int[]range(IExpr discreteDistribution, IExpr predicate, IExpr x)Return the distributions lower and upper bounds reduced by the predicate's assumptions.-
Methods inherited from interface org.matheclipse.core.interfaces.IDistribution
checkParameters, dist, mean, median
-
-
-
-
Method Detail
-
range
default int[] range(IExpr discreteDistribution, IExpr predicate, IExpr x)
Return the distributions lower and upper bounds reduced by the predicate's assumptions.- Parameters:
discreteDistribution-predicate-x-- Returns:
nullif no interval could be determined
-
getSupportLowerBound
default int getSupportLowerBound(IExpr discreteDistribution)
The lower bound of the support is 0 by default.- Parameters:
discreteDistribution-- Returns:
- lower bound of the support (always 0)
-
getSupportUpperBound
default int getSupportUpperBound(IExpr discreteDistribution)
The upper bound of the support is positive infinity, regardless of the parameter values. There is no integer infinity, so this method returnsInteger.MAX_VALUE.- Parameters:
discreteDistribution-- Returns:
- upper bound of the support (always
Integer.MAX_VALUEfor positive infinity)
-
-