private void computeLOFScores ( KNNQuery < O > knnq , DBIDs ids , DoubleDataStore lrds , WritableDoubleDataStore lofs , DoubleMinMax lofminmax ) { FiniteProgress progressLOFs = LOG . isVerbose ( ) ? new FiniteProgress ( "Local Outlier Factor (LOF) scores" , ids . size ( ) , LOG ) : null ; double lof ; for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { lof = computeLOFScore ( knnq , iter , lrds ) ; lofs . putDouble ( iter , lof ) ; // update minimum and maximum lofminmax . put ( lof ) ; LOG . incrementProcessed ( progressLOFs ) ; } LOG . ensureCompleted ( progressLOFs ) ; }
Compute local outlier factors .