com.rapidminer.tools.math.smoothing
Class TriangularSmoothingKernel

java.lang.Object
  extended by com.rapidminer.tools.math.smoothing.SmoothingKernel
      extended by com.rapidminer.tools.math.smoothing.TriangularSmoothingKernel
All Implemented Interfaces:
java.io.Serializable

public class TriangularSmoothingKernel
extends SmoothingKernel

This class implements a triangular smoothing kernel. If distance is 0, the weight is 1, with growing distance the weight will decrease linearly to zero.

Author:
Sebastian Land
See Also:
Serialized Form

Constructor Summary
TriangularSmoothingKernel()
           
 
Method Summary
 double getWeight(double distance)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapidminer.tools.math.smoothing.SmoothingKernel
getWeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriangularSmoothingKernel

public TriangularSmoothingKernel()
Method Detail

getWeight

public double getWeight(double distance)
Specified by:
getWeight in class SmoothingKernel

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I