Class SinFeatureApplier

  • All Implemented Interfaces:
    FeatureApplier

    public class SinFeatureApplier
    extends java.lang.Object
    implements FeatureApplier
    Applies the sine function to a specific axis (x or y) of the datasets points in the dataset.
    • Constructor Summary

      Constructors 
      Constructor Description
      SinFeatureApplier​(int axis)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ArrayList<java.util.ArrayList<java.lang.Object>> applyFeature​(java.util.ArrayList<java.util.ArrayList<java.lang.Object>> dataset)
      Applies the sin function to the values of either the x or y-axis of a dataset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SinFeatureApplier

        public SinFeatureApplier​(int axis)
        Parameters:
        axis - the axis of the coordinates to apply the sin function to (0 = x-axis, 1 = y-axis)
    • Method Detail

      • applyFeature

        public java.util.ArrayList<java.util.ArrayList<java.lang.Object>> applyFeature​(java.util.ArrayList<java.util.ArrayList<java.lang.Object>> dataset)
        Applies the sin function to the values of either the x or y-axis of a dataset.
        Specified by:
        applyFeature in interface FeatureApplier
        Parameters:
        dataset - Given in the transformed dataset format
        Returns:
        The same dataset with sin applied to the correct axis values appended to the correct coordinates list