UpdateConst

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

1 | ```
WhichCell(y, param, smart, const)
``` |

`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). |

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.