Skip to content

Latest commit

 

History

History

Pdf

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Pdf()

Represents a probability density function (PDF).

@Methods:

.density(x)

Evaluates this pdf at x.

This method needs implement by children class, if not there is an UnimplementedMethodException would be throw when the method is called

@Params:

param type description
x number number

@Returns: float probability density

.makePmf(xs, name)

Makes a discrete version of this pdf, evaluated at xs.

@Params:

param type description
xs string array

@Returns: new pmf