use of org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded in project knime-core by knime.
the class NaiveBayesPredictorNodeDialog method addOtherControls.
/**
* {@inheritDoc}
*/
@Override
protected void addOtherControls(final JPanel panel) {
super.addOtherControls(panel);
final SettingsModelDouble laplaceCorrectorModel = new SettingsModelDoubleBounded(NaiveBayesPredictorNodeModel.CFG_LAPLACE_CORRECTOR_KEY, 0.0, 0.0, Double.MAX_VALUE);
final DialogComponentNumber laplaceCorrectorComponent = new DialogComponentNumber(laplaceCorrectorModel, "Laplace corrector: ", new Double(0.1), 5);
laplaceCorrectorComponent.setToolTipText("Set to zero for no correction");
addDialogComponent(panel, laplaceCorrectorComponent);
}
use of org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded in project knime-core by knime.
the class SubgroupMinerDialog method createConfidenceModel.
/**
* @return settings model for the confidence
*/
static SettingsModelDoubleBounded createConfidenceModel() {
SettingsModelDoubleBounded model = new SettingsModelDoubleBounded(SubgroupMinerModel.CFG_CONFIDENCE, SubgroupMinerModel.DEFAULT_CONFIDENCE, 0.0, 1.0);
model.setEnabled(false);
return model;
}
use of org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded in project knime-core by knime.
the class CreateBitVectorNodeModel method createThresholdModel.
/**
* @return the threshold model
*/
static SettingsModelDouble createThresholdModel() {
final SettingsModelDoubleBounded model = new SettingsModelDoubleBounded("singleNumericThreshold", 1.0, -Double.MAX_VALUE, Double.MAX_VALUE);
model.setEnabled(!DEFAULT_USE_MEAN && ColumnType.getDefault().equals(ColumnType.MULTI_NUMERICAL));
return model;
}
use of org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded in project knime-core by knime.
the class DBSamplingNodeModel method createRelativeModel.
static SettingsModelDoubleBounded createRelativeModel() {
final SettingsModelDoubleBounded model = new SettingsModelDoubleBounded("fraction", 10, 0, 100);
model.setEnabled(false);
return model;
}
use of org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded in project knime-core by knime.
the class SubgroupMinerDialog2 method createConfidenceModel.
/**
* @return settings model for the confidence
*/
static SettingsModelDoubleBounded createConfidenceModel() {
SettingsModelDoubleBounded model = new SettingsModelDoubleBounded(SubgroupMinerModel2.CFG_CONFIDENCE, SubgroupMinerModel2.DEFAULT_CONFIDENCE, 0.0, 1.0);
model.setEnabled(false);
return model;
}
Aggregations