IRISLIB database
MixedDistribution Class Reference

Represents multicomponent continues distribution. More...

Inheritance diagram for MixedDistribution:
Collaboration diagram for MixedDistribution:

Public Member Functions

_.Library.Status AddComponent (_.DeepSee.extensions.stat.AbstractContinuousDistribution p, _.Library.Double weight)
 Add a component p to the distribution with the given weight. More...
 
_.Library.Status balance ()
 The method to call after all components of the distribution are specified.
 
_.Library.Double cdf (_.Library.Double x1, _.Library.Double x2)
 An interface method for cumulative distribution function (CDF). More...
 
_.Library.Double pdf (_.Library.Double x)
 An interface method for probability distribution function (PDF). More...
 
- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Public Member Functions inherited from AbstractContinuousDistribution
_.DeepSee.extensions.stat.Abstract1DDistribution GetDiscreteDistribution (_.Library.Double x0, _.Library.Double x1, _.Library.Integer n, _.Library.Status sc)
 Returns a discrete distribution between values x0 and x1 constructed from. More...
 

Public Attributes

 N
   More...
 
 P
   More...
 
 w
   More...
 
- Public Attributes inherited from AbstractDistribution
 Entropy
   More...
 
 Mean
   More...
 
 Variance
   More...
 

Additional Inherited Members

- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

Represents multicomponent continues distribution.

For example let the user to create a distribution consisting of mixed Gaussian components or a mixed Normal/Exponential distribution.

Here is an example of it's usage:

set ndist = ##class(DeepSee.extensions.stat.NormalDistribution).create(m, (sigma * sigma)) set edist = ##class(DeepSee.extensions.stat.ExpDistribution).create(lambda) set mdist = ##class(DeepSee.extensions.stat.MixedDistribution).New() set sc = mdist.AddComponent(ndist, w) Quit:$$$ISERR(sc) set sc = mdist.AddComponent(edist, (1-w)) Quit:$$$ISERR(sc) set sc = mdist.balance() Quit:$$$ISERR(sc) w "Mean = "_mdist.Mean w "; Var = "_mdist.Variance w "; Entropy = "_mdist.Entropy, !

Member Function Documentation

◆ AddComponent()

Add a component p to the distribution with the given weight.

After all components

are added application must call <METHOD>balance</METHOD>

◆ cdf()

An interface method for cumulative distribution function (CDF).

Optionally provides a cumulative probability

of a value being between two values x1 and x2.

If called with 1 argument(x1) or if the value of second argument is empty string then returns CDF value for x1. If called with two arguments, x1 and x2 then returns a probability of a value being between x1 and x2.

Reimplemented from AbstractContinuousDistribution.

◆ pdf()

An interface method for probability distribution function (PDF).

Returns PDF value for x.

Reimplemented from AbstractContinuousDistribution.

Member Data Documentation

◆ N

N

 

 

◆ P

P

 

 

◆ w

w