realization: An ordinal-valued tensor randomly simulated from the...

View source: R/ordinalbasic.R

realizationR Documentation

An ordinal-valued tensor randomly simulated from the cumulative model.

Description

Simulate an ordinal-valued tensor from the cumulative logistic model with the parameter tensor and the cut-off points.

Usage

realization(theta,omega)

Arguments

theta

A continuous-valued tensor (latent parameters).

omega

The cut-off points.

Value

An ordinal-valued tensor randomly simulated from the cumulative logistic model.

References

C. Lee and M. Wang. Tensor denoising and completion based on ordinal observations. International Conference on Machine Learning (ICML), 2020.

Examples

indices <- c(10,20,30)
arr <- array(runif(prod(indices)),dim = indices)
b <- qnorm((1:3)/4)
r_sample <- realization(arr,b);r_sample

TensorComplete documentation built on April 14, 2023, 9:10 a.m.