org.biojava.stats.svm.tools
Class SuffixTreeKernel.MultipleScalar
java.lang.Object
org.biojava.stats.svm.tools.SuffixTreeKernel.MultipleScalar
- All Implemented Interfaces:
- Serializable, SuffixTreeKernel.DepthScaler
- Enclosing class:
- SuffixTreeKernel
public static class SuffixTreeKernel.MultipleScalar
- extends Object
- implements SuffixTreeKernel.DepthScaler, Serializable
Scale using a multiple of two DepthScalers.
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
Method Summary |
double |
getScale(int depth)
Retrieve the scaling factor at a given depth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SuffixTreeKernel.MultipleScalar
public SuffixTreeKernel.MultipleScalar(SuffixTreeKernel.DepthScaler a,
SuffixTreeKernel.DepthScaler b)
getScale
public double getScale(int depth)
- Description copied from interface:
SuffixTreeKernel.DepthScaler
- Retrieve the scaling factor at a given depth
- Specified by:
getScale
in interface SuffixTreeKernel.DepthScaler
- Parameters:
depth
- word length
- Returns:
- the scaling factor for the subspace at that length