WhichCell

Description

returns the index of the cell to which the new sample belongs

Usage

1
WhichCell(y, param, smart, const)

Arguments

y

A one-row matrix, the new sample to be input.

param

A logical scalar, if TRUE, the model is in parametric version, otherwise, a non-parametric one.

smart

A matrix, stores all the parameters over the continuous domain.

const

A numeric vector, specifies the value of all global variables, if param = T, then const = c(N,n,d,rh,r,K,alpha); if param=FALSE, then const = c(N,n,d,rh,r,K,sigma_sqare).

Value

The row index of the discrete class to which the new sample belongs.