UniNormParameter-class

0th

Percentile

Class "UniNormParameter"

The parameter of a univariate normal distribution, used by Norm-class

Keywords
distribution
Objects from the Class

Objects can be created by calls of the form new("NormParameter", sd, mean). Usually an object of this class is not needed on its own, it is generated automatically when an object of the class Norm is instantiated.

Slots

sd
Object of class "numeric": the sd of a univariate normal distribution
mean
Object of class "numeric": the mean of a univariate normal distribution
name
Object of class "character": a name / comment for the parameters

Extends

Class "NormParameter", directly. Class "Parameter", by class "NormParameter".

Methods

initialize
signature(.Object = "UniNormParameter"): initialize method
mean
signature(object = "UniNormParameter"): returns the slot mean of the parameter of the distribution
mean<-
signature(object = "UniNormParameter"): modifies the slot mean of the parameter of the distribution
sd
signature(object = "UniNormParameter"): returns the slot sd of the parameter of the distribution
sd<-
signature(object = "UniNormParameter"): modifies the slot sd of the parameter of the distribution

See Also

Norm-class NormParameter-class Parameter-class

Aliases
  • UniNormParameter-class
  • initialize,UniNormParameter-method
Examples
W <- new("UniNormParameter", mean = 0, sd = 1)
sd(W) # sd of this distribution is 1
sd(W) <- 2 # sd of this distribution is now 2
Documentation reproduced from package distr, version 2.6, License: LGPL-3

Community examples

Looks like there are no examples yet.