Uniform: Uniform

UniformR Documentation

Uniform

Description

Uniform distribution in OOP way. Based on AbstractDist

Details

See AbstractDist for generic methods

Super class

ROOPSD::AbstractDist -> Uniform

Active bindings

min

[double] min of the uniform law

max

[double] max of the uniform law

params

[vector] params of the uniform law

Methods

Public methods

Inherited methods

Method new()

Create a new Uniform object.

Usage
Uniform$new(min = 0, max = 1)
Arguments
min

[double] Min of the uniform law

max

[double] Max of the uniform law

Returns

A new 'Uniform' object.


Method clone()

The objects of this class are cloneable with this method.

Usage
Uniform$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## Generate sample
min = -1
max = 1
unifl = ROOPSD::Uniform$new( min = min , max = max )
X     = unifl$rvs( n = 1000 )

## And fit parameters
unifl$fit(X)


ROOPSD documentation built on Sept. 11, 2023, 9:06 a.m.

Related to Uniform in ROOPSD...