public final class CosineAverageFunction extends Object implements CosineDistanceSensitiveFunction
Constructor and Description |
---|
CosineAverageFunction(float[] itemFeatureVector) |
CosineAverageFunction(float[][] itemFeatureVectors) |
Modifier and Type | Method and Description |
---|---|
double |
applyAsDouble(float[] itemVector) |
float[] |
getTargetVector() |
public CosineAverageFunction(float[] itemFeatureVector)
public CosineAverageFunction(float[][] itemFeatureVectors)
public double applyAsDouble(float[] itemVector)
applyAsDouble
in interface ToDoubleFunction<float[]>
public float[] getTargetVector()
getTargetVector
in interface CosineDistanceSensitiveFunction
Copyright © 2014–2018. All rights reserved.