UnivarMixingDistribution-class is a class to formalize 
                   univariate mixing distributions; it is a subclass to
                   class UnivariateDistribution.new("UnivarMixingDistribution", ...).
  More frequently they are created via the generating function 
  UnivarMixingDistribution.mixCoeff"numeric": a vector of 
            probabilities for the mixing components.mixDistr"UnivarDistrList": a list of
    univariate distributions containing the mixing components; must be of same
    length as mixCoeff.img"Reals": the space of the image of this distribution which has dimension 1
    and the name "Real Space" param"Parameter": the parameter of this distribution, having only the
    slot name "Parameter of a discrete distribution" r"function": generates random numbersdNULLp"function": cumulative distribution functionq"function": quantile functionsupportgapsNULL; the merged gaps slots of all components, 
    if existing (else NULL).withArith.withSim.logExact.lowerExactSymmetry"DistributionSymmetry";
     used internally to avoid unnecessary calculations."UnivariateDistribution"
class "Distribution" by class "UnivariateDistribution".signature(object = "UnivarMixingDistribution") prints the objectsignature(object = "UnivarMixingDistribution") replaces the corresponding slotsignature(object = "UnivarMixingDistribution") returns the corresponding slotsignature(object = "UnivarMixingDistribution") replaces the corresponding slotsignature(object = "UnivarMixingDistribution") returns the corresponding slotsignature(object = "UnivarMixingDistribution") returns the corresponding slotsignature(object = "UnivarMixingDistribution") returns the corresponding slotsignature(object = "Distribution"): returns slot 
      .logExact if existing; else tries to convert the object to a newer 
      version of its class by conv2NewVersion and
      returns the corresponding slot of the converted object.signature(object = "Distribution"): returns slot 
       .lowerExact if existing; else tries to convert the object to a 
       newer version of its class by conv2NewVersion and
     returns the corresponding slot of the converted object.Symmetry if existing; else
    tries to convert the object to a 
       newer version of its class by conv2NewVersion and
     returns the corresponding slot of the converted object.Parameter-class, 
UnivariateDistribution-class, 
LatticeDistribution-class, 
AbscontDistribution-class, 
simplifyD, 
flat.mix
mylist <- UnivarMixingDistribution(Binom(3,.3), Dirac(2), Norm(), 
          mixCoeff=c(1/4,1/5,11/20))
mylist2 <- UnivarMixingDistribution(Binom(3,.3), mylist, 
          mixCoeff=c(.3,.7))
mylist2
p(mylist)(0.3)          
mixDistr(mylist2)
Run the code above in your browser using DataLab