Normal: Normal

Description Details Super class Active bindings Methods Examples

Description

Normal distribution in OOP way. Based on AbstractDist

Details

See AbstractDist for generic methods

Super class

ROOPSD::AbstractDist -> Normal

Active bindings

mean

[double] mean of the normal law

sd

[double] standard deviation of the normal law

params

[vector] params of the normal law

Methods

Public methods

Inherited methods

Method new()

Create a new Normal object.

Usage
Normal$new(mean = 0, sd = 1)
Arguments
mean

[double] Mean of the normal law

sd

[double] Standard deviation of the normal law

Returns

A new 'Normal' object.


Method clone()

The objects of this class are cloneable with this method.

Usage
Normal$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

1
2
3
4
5
6
7
8
## Generate sample
mean  = 1
sd    = 0.5
norml = ROOPSD::Normal$new( mean = mean , sd = sd )
X     = norml$rvs( n = 1000 )

## And fit parameters
norml$fit(X)

ROOPSD documentation built on Aug. 26, 2020, 5:15 p.m.

Related to Normal in ROOPSD...