public interface SquaredNormCache
Modifier and Type | Method and Description |
---|---|
void |
flush()
Empties the cache
|
Float |
getSquaredNorm(Example example)
Returns a previously stored norm of a given example
|
void |
setSquaredNormValue(Example example,
float squaredNorm)
Stores a squared norm in the cache
|
Float getSquaredNorm(Example example)
example
- the instance whose squared norm is requirednull
if a cache miss occursvoid setSquaredNormValue(Example example, float squaredNorm)
example
- the example whose quadratic norm must be storedsquaredNorm
- the squared norm to be storedvoid flush()
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.