momentMatched

Builds a distribution of the requested family with the requested mean and variance, or null where those moments are not attainable by that family.

Parameters

type

the family

mean

the target mean

variance

the target variance