Double base = ((LogarithmicParameter) parameter).getBase();
Double value = Math.pow(
base,
- slider.getValue());
+ slider.getValue() / 1000000f);
valueField.setText(formatDouble(value));
}
checkIfModified();
public String formatDouble(Double value)
{
- String string = String.format("%2.3f", value);
+ String string = String.format("%3.3f", value);
if (value < 0.001)
{
string = String.format("%3.3e", value);
{
Double base = ((LogarithmicParameter) parm).getBase();
Double value = Math.pow(base,
- Double.parseDouble(parm.getValue()));
+ Double.parseDouble(parm.getValue()) / 1000000);
valueField.setText(formatDouble(value));
}
else
eValue = Double.valueOf(valueField.getText());
dVal = Math.log(eValue) / Math
- .log(((LogarithmicParameter) parameter).getBase());
+ .log(((LogarithmicParameter) parameter).getBase())
+ * 1000000;
if (validator.getMin() != null
&& validator.getMin().doubleValue() > dVal)
args.add(new LogarithmicParameter(
MessageManager.getString("label.seq_e_value"),
MessageManager.getString("label.seq_e_value_desc"), false,
- -9.96578, -126d, 3.3219d, 2d));
+ -3d, -37.92977945, 1d, 10d));
/*
args.add(new DoubleParameter(
MessageManager.getString("label.seq_score"),
args.add(new LogarithmicParameter(
MessageManager.getString("label.dom_e_value_desc"),
MessageManager.getString("label.dom_e_value_desc"), false,
- -9.96578, -126d, 3.3219d, 2d));
+ -3d, -37.92977945, 1d, 10d));
/*
args.add(new DoubleParameter(
MessageManager.getString("label.dom_score"),
super(name, description, required, String.valueOf(defValue), null, null,
null);
defval = defValue;
- this.min = min;
- this.max = max;
+ this.min = min * 1000000;
+ this.max = max * 1000000;
this.base = base;
}
super(name, description, required, String.valueOf(defValue),
String.valueOf(value), null, null);
defval = defValue;
- this.min = min;
- this.max = max;
+ this.min = min * 1000000;
+ this.max = max * 1000000;
this.base = base;
}