Contents Previous Next


XtoP Property (BDKInput Object)

Description

Returns the cumulative probability (p-value) corresponding to a given x-value.

Syntax

object.XToP(x as Double, Optional interpolateBetweenPoints As Boolean = False)

Arguments

x (Required Double) – the x-value for which you want to retrieve the corresponding cumulative p-value.

interpolateBetweenPoints (Optional Boolean) - set to TRUE to indicate the linear interpolation should occur between continuous sample points. If FALSE, no interpolation will occur (i.e. when this setting is on, the cumulative probability function is a staircase sequence of discrete jumps at each data value, instead of series of connected lines.)

Return Value

(Double) – the cumulative p-value

Example

'Determine the cumulative p-value at x =100
p = dist.XtoP(100)