toyData: Generates toy data from sequential Gaussian distributions

Description Usage Arguments Value

View source: R/toy.R

Description

The ni data points for the i^th class are generated from N(i,stdevi). Coordinates are assumed to be indepedent (i.e., covariance is the identity matrix).

Usage

1
toyData(n, p, nb = 6, stdev = 1)

Arguments

n

Desired number of samples in each class. Values are recycled.

p

Data dimensionality

nb

Number of boundaries (== number of classes - 1)

stdev

Standard deviation of each Gaussian. Values are recycled.

Value

A list with the following elements:

X

A ns-by-p matrix of ns = sum(n) data points in p dimensions

y

A matching ordered factor of length ns containing true labels


labsyspharm/ordinalRidge documentation built on Dec. 21, 2021, 8:49 a.m.