![JAR search and dependency download from the Maven repository](/logo.png)
com.github.TKnudsen.ComplexDataObject.data.features.Features Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of complex-data-object Show documentation
Show all versions of complex-data-object Show documentation
A library that models real-world objects in Java, referred to as ComplexDataObjects. Other features: IO and preprocessing of ComplexDataObjects.
The newest version!
package com.github.TKnudsen.ComplexDataObject.data.features;
import com.github.TKnudsen.ComplexDataObject.data.features.mixedData.MixedDataFeature;
import com.github.TKnudsen.ComplexDataObject.data.features.numericalData.NumericalFeature;
/**
*
* Copyright: Copyright (c) 2017-2020
*
*
* @author Juergen Bernard
* @version 1.02
*/
public class Features {
public static Feature> createDefaultFeature(String featureName, FeatureType featureType) {
switch (featureType) {
case DOUBLE:
return new NumericalFeature(featureName, Double.NaN);
default:
return new MixedDataFeature(featureName, null, featureType);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy