openest.models.delta_model module

class openest.models.delta_model.DeltaModel(xx_is_categorical=False, xx=None, locations=None, scale=1)[source]

Bases: openest.models.univariate_model.UnivariateModel

cdf(xx, yy)[source]
static combine(one, two)[source]
copy()[source]
draw_sample(x=None)[source]

Produce a sample value of y from the conditional distribution.

filter_x(xx)[source]
init_from_delta_file(file, delimiter, status_callback=None)[source]
interpolate_x(newxx, kind='quadratic')[source]
kind()[source]
static merge(models)[source]
scale_p(a)[source]

Raising a delta function to a power makes no difference.

scale_y(a)[source]

Rescaling of the Parameter Dimension

Produces a new conditional PDF with the $y$ dimension scaled by a constant: $p(z | x) = p( rac{y}{a} | x)$.

to_points_at(x, ys)[source]

Conditional Probability Density Evaluation

Returns unscaled probability density values for given values of $x$ and $y$: $f(y | x)$.

write(file, delimiter)[source]
write_file(filename, delimiter)[source]
static zero_delta(model)[source]