gaussianKdePredict#

swordfish.function.gaussianKdePredict()#

Predict the probability density of the input data based on the model generated by gaussianKde.

Parameters:
  • model (Constant) – A dictionary indicating the model generated by gaussianKde.

  • X (Constant) – A numeric vector, matrix, tuple, or table indicating the data to be predicted. Its dimensions must be the same as those of the dataset used in gaussianKde.

Returns:

A floating-point vector of the same size as the number of rows in X, indicating the prediction result of each data point in X.

Return type:

Constant