use of org.kie.pmml.commons.model.expressions.KiePMMLNormContinuous in project drools by kiegroup.
the class KiePMMLNormContinuousInstanceFactory method getKiePMMLNormContinuous.
static KiePMMLNormContinuous getKiePMMLNormContinuous(final NormContinuous normContinuous) {
final List<KiePMMLLinearNorm> linearNorms = normContinuous.hasLinearNorms() ? getKiePMMLLinearNorms(normContinuous.getLinearNorms()) : Collections.emptyList();
final OUTLIER_TREATMENT_METHOD outlierTreatmentMethod = normContinuous.getOutliers() != null ? OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()) : null;
return new KiePMMLNormContinuous(normContinuous.getField().getValue(), getKiePMMLExtensions(normContinuous.getExtensions()), linearNorms, outlierTreatmentMethod, normContinuous.getMapMissingTo());
}
use of org.kie.pmml.commons.model.expressions.KiePMMLNormContinuous in project drools by kiegroup.
the class KiePMMLNormContinuousInstanceFactoryTest method getKiePMMLNormContinuous.
@Test
public void getKiePMMLNormContinuous() {
final NormContinuous toConvert = getRandomNormContinuous();
final KiePMMLNormContinuous retrieved = KiePMMLNormContinuousInstanceFactory.getKiePMMLNormContinuous(toConvert);
commonVerifyKiePMMLNormContinuous(retrieved, toConvert);
}
Aggregations