The setWeights method

Description

Gives new weights to the discrete distribution associated with the factor's domain.

Usage

1

Arguments

this

the underlying object of the class to proceed (mtkLevels).

weights

a vector of numeric value.

Value

invisible

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
5
# Create a mtkLevels object

	l <- mtkLevels(type='categorical', levels=c(1,2,3,4))

	setWeights(l, weights=rep(0.25,4))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.