Learn R Programming

ROOPSD (version 0.3.9)

Uniform: Uniform

Description

Uniform distribution in OOP way. Based on AbstractDist

Arguments

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

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.

Details

See AbstractDist for generic methods

Examples

Run this code
## 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)

Run the code above in your browser using DataLab