Empirical Cumulative Distribution Function¤
stamox.distribution.step_fun(x, y, ival = 0.0, sorted = False, side = 'left', dtype = <class 'jax.numpy.float64'>)
¤
Returns a function that evaluates a step function at given points.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
array-like |
The x-coordinates of the step points. |
required |
y |
array-like |
The y-coordinates of the step points. |
required |
ival |
float |
The initial value of the step function. Defaults to 0. |
0.0 |
sorted |
bool |
Whether the x-coordinates are already sorted. Defaults to False. |
False |
side |
str |
The side of the interval to take when evaluating the step function. Must be either 'left' or 'right'. Defaults to 'left'. |
'left' |
dtype |
jnp.dtype |
The dtype of the output. Defaults to jnp.float_. |
<class 'jax.numpy.float64'> |
Returns:
Type | Description |
---|---|
Callable[..., ArrayLike] |
A function that evaluates the step function at given points. |
stamox.distribution.ecdf(x: ArrayLike, side = 'right', dtype = <class 'jax.numpy.float64'>) -> Callable[..., ArrayLike]
¤
Calculates the empirical cumulative distribution function (ECDF) of a given array.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
array |
The array to calculate the ECDF for. |
required |
side |
str |
Specifies which side of the step function to use. Defaults to 'right'. |
'right' |
dtype |
jnp.dtype |
The dtype of the output. Defaults to jnp.float_. |
<class 'jax.numpy.float64'> |
Returns:
Type | Description |
---|---|
Callable[..., ArrayLike] |
A function that evaluates the ECDF at given points. |