com.rapidminer.tools.math.kernels
Class FullCache

java.lang.Object
  extended by com.rapidminer.tools.math.kernels.FullCache
All Implemented Interfaces:
KernelCache

public class FullCache
extends java.lang.Object
implements KernelCache

Stores all distances in a matrix (attention: should only be used for smaller data sets).

Author:
Ingo Mierswa

Constructor Summary
FullCache(ExampleSet exampleSet, Kernel kernel)
           
 
Method Summary
 double get(int i, int j)
          Delivers the cached value or Double.NaN if the value is not known.
 void store(int i, int j, double value)
          Stores the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullCache

public FullCache(ExampleSet exampleSet,
                 Kernel kernel)
Method Detail

get

public double get(int i,
                  int j)
Description copied from interface: KernelCache
Delivers the cached value or Double.NaN if the value is not known.

Specified by:
get in interface KernelCache

store

public void store(int i,
                  int j,
                  double value)
Description copied from interface: KernelCache
Stores the value. Should only be invoked if the value was not known. This method might delete kernel values so that the invocation of get might deliver NaN.

Specified by:
store in interface KernelCache


Copyright © 2001-2009 by Rapid-I