|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProbabilityDensityFunction
In mathematics, a probability density function (pdf) serves to represent a
probability distribution in terms of integrals. A probability density
function is non-negative everywhere and its integral from -inf to +inf is
equal to 1. If a probability distribution has density f(x), then intuitively
the infinitesimal interval [x, x + dx] has probability f(x) dx. Informally, a
probability density function can be seen as a "smoothed out" version of a
histogram: if one empirically measures values of a continuous random variable
repeatedly and produces a histogram depicting relative frequencies of output
ranges, then this histogram will resemble the random variable's probability
density (assuming that the variable is sampled sufficiently often and the
output ranges are sufficiently narrow).
For more information see
http://en.wikipedia.org/wiki/Probability_Density_Function
| Method Summary | |
|---|---|
IProbabilityDensityFunction |
add(IProbabilityDensityFunction pdf)
Adds two ProbabilityDensityFunctions on a "per value" basis: h(x) = f(x) + g(x) An addition can only be performed if both functions are in the same domain (frequency or time). |
IProbabilityDensityFunction |
div(IProbabilityDensityFunction pdf)
Divides two ProbabilityDensityFunctions on a "per value" basis: h(x) = f(x) / g(x) A division can only be performed if both functions are in the same domain (frequency or time). |
double |
drawSample()
Generates a random number of the probability function's domain, whose distribution is defined by the probability function. |
IProbabilityDensityFunction |
getCumulativeFunction()
returns the cumulative probability function associated with this probability function. |
IProbabilityDensityFunction |
getFourierTransform()
Computes the fourier transform of the probability density function. |
IProbabilityDensityFunction |
getInverseFourierTransform()
Computes the inverse fourier transform of the probability density function. |
double |
getLowerDomainBorder()
Returns the smallest values of the domain. |
double |
greaterThan(IProbabilityDensityFunction pdf)
Computes the probability that the random variable specified by this PDF is greater than the random variable specified by pdf. |
double |
lessThan(IProbabilityDensityFunction pdf)
Computes the probability that the random variable specified by this PDF is less than the random variable specified by pdf. |
IProbabilityDensityFunction |
mult(IProbabilityDensityFunction pdf)
Multiplies two ProbabilityDensityFunctions on a "per value" basis: h(x) = f(x) * g(x) A multiplication can only be performed if both functions are in the same domain (frequency or time). |
double |
probabilisticEquals(IProbabilityDensityFunction pdf)
Computes the probability that two random variables characterised by the given PDFs are equal. |
IProbabilityDensityFunction |
scale(double scalar)
Scales a ProbabilityDensityFunctions on a "per value" basis: h(x) = a * f(x) |
IProbabilityDensityFunction |
shiftDomain(double scalar)
Shifts the domain values of the PDF by the given scalar |
IProbabilityDensityFunction |
stretchDomain(double scalar)
Stretches the domain values of the PDF. |
IProbabilityDensityFunction |
sub(IProbabilityDensityFunction pdf)
Subtracts two ProbabilityDensityFunctions on a "per value" basis: h(x) = f(x) - g(x) A substraction can only be performed if both functions are in the same domain (frequency or time). |
| Methods inherited from interface de.uka.ipd.sdq.probfunction.math.IProbabilityFunction |
|---|
checkConstrains, getArithmeticMeanValue, getMedian, getPercentile, getProbabilitySum, getUnit, hasOrderedDomain, isInFrequencyDomain, isInTimeDomain |
| Method Detail |
|---|
double drawSample()
double getLowerDomainBorder()
IProbabilityDensityFunction add(IProbabilityDensityFunction pdf)
throws FunctionsInDifferenDomainsException,
UnknownPDFTypeException,
IncompatibleUnitsException
pdf - g(x), probability density function to add.
FunctionsInDifferenDomainsException - Thrown if both functions are in different domains.
UnknownPDFTypeException - Thrown if one of the function is of an unknown type (not
SamplePDf or BoxedPDF).
IncompatibleUnitsException - Thrown if both functions have units that do not match.
IProbabilityDensityFunction mult(IProbabilityDensityFunction pdf)
throws FunctionsInDifferenDomainsException,
UnknownPDFTypeException,
IncompatibleUnitsException
pdf - g(x), probability density function to multiply with.
FunctionsInDifferenDomainsException - Thrown if both functions are in different domains.
UnknownPDFTypeException - Thrown if one of the function is of an unknown type (not
SamplePDf or BoxedPDF).
IncompatibleUnitsException - Thrown if both functions have units that do not match.
IProbabilityDensityFunction sub(IProbabilityDensityFunction pdf)
throws FunctionsInDifferenDomainsException,
UnknownPDFTypeException,
IncompatibleUnitsException
pdf - g(x), probability density function to substract.
FunctionsInDifferenDomainsException - Thrown if both functions are in different domains.
UnknownPDFTypeException - Thrown if one of the function is of an unknown type (not
SamplePDf or BoxedPDF).
IncompatibleUnitsException - Thrown if both functions have units that do not match.
IProbabilityDensityFunction div(IProbabilityDensityFunction pdf)
throws FunctionsInDifferenDomainsException,
UnknownPDFTypeException,
IncompatibleUnitsException
pdf - g(x), probability density function to divide by.
FunctionsInDifferenDomainsException
IncompatibleUnitsException
UnknownPDFTypeExceptionIProbabilityDensityFunction scale(double scalar)
scalar - a, value to scale with.
IProbabilityDensityFunction getFourierTransform()
throws FunctionNotInTimeDomainException
FunctionNotInTimeDomainException
IProbabilityDensityFunction getInverseFourierTransform()
throws FunctionNotInFrequencyDomainException
FunctionNotInFrequencyDomainException
IProbabilityDensityFunction getCumulativeFunction()
throws FunctionNotInTimeDomainException
FunctionNotInTimeDomainException
double probabilisticEquals(IProbabilityDensityFunction pdf)
throws ProbabilityFunctionException
pdf - PDF to compare to.
ProbabilityFunctionException
double greaterThan(IProbabilityDensityFunction pdf)
throws ProbabilityFunctionException
pdf - PDF to compare to.
ProbabilityFunctionException
double lessThan(IProbabilityDensityFunction pdf)
throws ProbabilityFunctionException
pdf - PDF to compare to.
ProbabilityFunctionExceptionIProbabilityDensityFunction stretchDomain(double scalar)
scalar -
IProbabilityDensityFunction shiftDomain(double scalar)
throws DomainNotNumbersException
scalar -
DomainNotNumbersException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||