PointEstimateMethod.jl

Package for the execution of the Point Estimate Method (PEM) with arbitrary number of representative points.
Author davide-f
Popularity
1 Star
Updated Last
2 Years Ago
Started In
October 2022

CI

PointEstimateMethod.jl

This repository implements the well known Point Estimate Method (PEM) to represent a distribution with a number of points that preserve the moments of the original distribution.

The methodology implements the Miller and Rice methodology as described at:

Example of usage is as follow:

using Distributions
using PointEstimateMethod

distribution = Normal()  # distribution to consider
N_pem = 3  # number of point estimate models to use

pem_output = pem(distribution, N_pem)

pem_output.x  # locations of the points
pem_output.p  # probability of each point

The pem function automatically calculates the moments of the distribution with the method Distributions.moment(::UnivariateDistribution, ::Int), by default; custom function can also be specified using the optional keyword central_moment_fun; see the docstring of the pem function.

When the function is not available, the proposed distribution is sampled using the rand function and then the sampled vector is used to calculate the moments. For more details, see the docstring of the pem function.

Examples are provided in the notebooks folder.

Used By Packages

No packages found.