Class SinFeatureApplier
- java.lang.Object
-
- com.playground.playground.usecase.features.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.
-
-
-
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 interfaceFeatureApplier
- 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
-
-