public class NoopNormalizer extends Object implements VectorNormalizer, Serializable
normalize(double[])
and is a no-op in place.Constructor and Description |
---|
NoopNormalizer() |
Modifier and Type | Method and Description |
---|---|
double[] |
normalize(double[] input)
Normalizes the input array in some fashion specified by the class.
|
void |
normalizeInPlace(double[] input)
In place normalization of the array.
|
public double[] normalize(double[] input)
VectorNormalizer
normalize
in interface VectorNormalizer
input
- The input to normalize.public void normalizeInPlace(double[] input)
VectorNormalizer
Note: This default implementation performs a copy by calling the standard normalize method.
normalizeInPlace
in interface VectorNormalizer
input
- The input to normalize.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.