ProbabilityDensityFunction
FunctionWithCachingFunction[IoId("00000000-3180-4D2B-845E-3DAA4625678E")]
public class ProbabilityDensityFunction : FunctionWithCaching
Represents an immutable probability density function.
Constructors
ProbabilityDensityFunction
#Create a new PDF function.
Parameters:
| distribution (ContinuousDistribution) |
Properties
Derivative
Gets a function which is the derivative of this function. The returned function may be either analytic or approximate.
Overrides: Function.Derivative
Integral
Gets a function which is the indefinite integral of this function. The returned function may be analytic or approximate. Note that numeric approximation of indefinite integrals is a slow and not particularly high quality process.
Overrides: Function.Integral
Notation
Gets the notation for this function. Notation is aimed at humans and does not need to return a parseable string.
Overrides: Function.Notation
Ui
Gets a UI object for modifying this function. This property may return null, not all functions must be editable.
Methods
Asymptotes
Returns an array of *all* the non-vertical asymptotes for this function. This property may return both null and empty arrays, implying no asymptotes. Due to the nature of non-vertical asymptotes, there can only be a finite amount of them.
AutoCoDomain
Compute the automatic codomain for a given domain.
DomainEstimate
Return an estimate of the interesting part of a function. Each function may choose how to answer this question individually.
EmitDerivative
Override this method to provide an analytic derivative.
EmitIntegral
Override this method to provide an analytic indefinite integral.
Holes
#Overrides: Function.Holes
Integrate
#Overrides: Function.Integrate
Poles
#Overrides: Function.Poles
YYYY
Evaluate a large amount of values. Functions may choose to use multiple threads to perform this calculation. This method should not throw, instead every failed evaluation will be represented by a NaN value.
Parameters:
| x (double[]) | Value to evaluate. |
Returns: Evaluation results. Array will contain double.NaN entries for failed evaluations.