Function ndpi_iforest_score

Function Documentation

double ndpi_iforest_score(void *_forest, double *sample)

Checks if a single sample is anomalous with respoect to the previously built model

Parameters:
  • forest – A forest created with ndpi_alloc_iforest()

  • sample – The data sample to analyze

Returns:

The anomaly value (0..1 range), usually a value over 0.5 is an anomaly.