Search in sources :

Example 1 with SettingsModelDoubleBounded

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);
}
Also used : SettingsModelDouble(org.knime.core.node.defaultnodesettings.SettingsModelDouble) DialogComponentNumber(org.knime.core.node.defaultnodesettings.DialogComponentNumber) SettingsModelDouble(org.knime.core.node.defaultnodesettings.SettingsModelDouble) SettingsModelDoubleBounded(org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded)

Example 2 with SettingsModelDoubleBounded

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;
}
Also used : SettingsModelDoubleBounded(org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded)

Example 3 with SettingsModelDoubleBounded

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;
}
Also used : SettingsModelDoubleBounded(org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded)

Example 4 with SettingsModelDoubleBounded

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;
}
Also used : SettingsModelDoubleBounded(org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded)

Example 5 with SettingsModelDoubleBounded

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;
}
Also used : SettingsModelDoubleBounded(org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded)

Aggregations

SettingsModelDoubleBounded (org.knime.core.node.defaultnodesettings.SettingsModelDoubleBounded)5 DialogComponentNumber (org.knime.core.node.defaultnodesettings.DialogComponentNumber)1 SettingsModelDouble (org.knime.core.node.defaultnodesettings.SettingsModelDouble)1