mtkLevels: The constructor of the class 'mtkLevels'

Description Usage Arguments Value Author(s) Examples

View source: R/mtkLevels.R

Description

The constructor of the class mtkLevels.

Usage

1
mtkLevels(type = "categorical", levels=vector(), weights=numeric(0))

Arguments

type

a string to specify the type of the discrete distribution: categorical, qualitative, etc.

levels

a vector of levels for a discrete domain.

weights

a vector of numeric values used to weight the levels.

Value

an object of the mtkLevels class

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
# creates an object of the class mtkLevel
l1 <- mtkLevels(type="qualitative",levels = c("x", "y"), weights=c(0.5, 0.5))
l2 <- mtkLevels(levels = c("a", "b", "c"))
l3 <- mtkLevels(levels = c("a", "b", "c"), weights=c(3, 5, 3))

mtk documentation built on May 29, 2017, 5:34 p.m.