computePivotFeatureValue
fun computePivotFeatureValue(searcher: IndexSearcher, featureField: String, featureName: String): Float
Compute a feature value that may be used as the pivot parameter of the .newSaturationQuery and .newSigmoidQuery factory methods. The implementation takes the average of the int bits of the float representation in practice before converting it back to a float. Given that floats store the exponent in the higher bits, it means that the result will be an approximation of the geometric mean of all feature values.
Parameters
searcher
the IndexSearcher to perform the search
featureField
the field that stores features
featureName
the name of the feature