de.jstacs.data
Class DinucleotideProperty.NoSmoothing

java.lang.Object
  extended by de.jstacs.data.DinucleotideProperty.Smoothing
      extended by de.jstacs.data.DinucleotideProperty.NoSmoothing
Enclosing class:
DinucleotideProperty

public static class DinucleotideProperty.NoSmoothing
extends DinucleotideProperty.Smoothing

Implementation of DinucleotideProperty.Smoothing that conducts no smoothing. The static instance DinucleotideProperty.NO_SMOOTHING should be used instead of constructing new objects.

Author:
Jan Grau

Method Summary
 double[] smooth(double[] original)
          Returns the smoothed version of original.
 String toString()
          Returns a String representation of this smoothing method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

smooth

public double[] smooth(double[] original)
Description copied from class: DinucleotideProperty.Smoothing
Returns the smoothed version of original. The length of the returned array and original may differ.

Specified by:
smooth in class DinucleotideProperty.Smoothing
Parameters:
original - the original series of values
Returns:
the smoothed version

toString

public String toString()
Description copied from class: DinucleotideProperty.Smoothing
Returns a String representation of this smoothing method.

Specified by:
toString in class DinucleotideProperty.Smoothing