Examples of DoubleParameter


Examples of jcgp.backend.parameters.DoubleParameter

    super(resources);
    setFunctionSet(new SymbolicRegressionFunctions());
    setName("Symbolic regression");
    setFileExtension(".dat");
   
    errorThreshold = new DoubleParameter(0.01, "Error threshold") {
      @Override
      public void validate(Number newValue) {
        if (newValue.doubleValue() < 0) {
          status = ParameterStatus.INVALID;
          status.setDetails("Error threshold must be a positive value.");
        } else if (newValue.doubleValue() == 0) {
          status = ParameterStatus.WARNING;
          status.setDetails("An error threshold of 0 is very rigorous and difficult to achieve.");
        } else {
          status = ParameterStatus.VALID;
        }
      }
    };
   
    perfectionThreshold = new DoubleParameter(0.000001, "Perfection threshold") {
      @Override
      public void validate(Number newValue) {
        if (newValue.doubleValue() < 0) {
          status = ParameterStatus.INVALID;
          status.setDetails("Perfection threshold must be a positive value.");
View Full Code Here

Examples of jcgp.backend.parameters.DoubleParameter

   * @param resources a reference to the experiment's resources.
   */
  public ProbabilisticMutator(Resources resources) {
    super(resources);
   
    mutationProbability = new DoubleParameter(10, "Mutation probability", false, false) {
      @Override
      public void validate(Number newValue) {
        if (newValue.doubleValue() <= 0 || newValue.doubleValue() > 100) {
          status = ParameterStatus.INVALID;
          status.setDetails("Mutation rate must be > 0 and <= 100");
View Full Code Here

Examples of jcgp.backend.parameters.DoubleParameter

   *
   * @param resources a reference to the experiment's resources.
   */
  public PercentPointMutator(final Resources resources) {
    super(resources);
    mutationRate = new DoubleParameter(10, "Percent mutation", false, false) {
      @Override
      public void validate(Number newValue) {

        int totalGenes = (resources.nodes() * (resources.arity() + 1)) + resources.outputs();
        int mutations = (int) (newValue.doubleValue() * (double) (totalGenes / 100.0));
View Full Code Here

Examples of net.sf.gilead.pojo.gwt.basic.DoubleParameter

    {
      return new CharacterParameter((Character) object);
    }
    if (object instanceof Double)
    {
      return new DoubleParameter((Double) object);
    }
    if (object instanceof Float)
    {
      return new FloatParameter((Float) object);
    }
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.DoubleParameter

      UserParameter parameter = null;

      if (radiobuttonNumerical.isSelected()) {

        parameter = new DoubleParameter(paramName, null);
      }

      if (radiobuttonFreeText.isSelected()) {
        parameter = new StringParameter(paramName, null);
      }
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.DoubleParameter

            isAllNumeric = false;
            break;
          }
        }
        if (isAllNumeric) {
          parameters.add(new DoubleParameter(name, null));
          continue;
        }

        // Test for "set of values"
        ArrayList<String> uniqueValues = new ArrayList<String>();
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.DoubleParameter

          .getElementName());
      String type = attrs.getValue(UserParameterElementName_2_3.TYPE
          .getElementName());

      if (type.equals(DoubleParameter.class.getSimpleName())) {
        currentParameter = new DoubleParameter(name, null);
      } else if (type.equals(StringParameter.class.getSimpleName())) {
        currentParameter = new StringParameter(name, null);
      } else if (type.equals(ComboParameter.class.getSimpleName())) {
        currentParameter = new ComboParameter<String>(name, null,
            new String[0]);
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.DoubleParameter

          .getElementName());
      String type = attrs.getValue(UserParameterElementName_2_5.TYPE
          .getElementName());

      if (type.equals(DoubleParameter.class.getSimpleName())) {
        currentParameter = new DoubleParameter(name, null);
      } else if (type.equals(StringParameter.class.getSimpleName())) {
        currentParameter = new StringParameter(name, null);
      } else if (type.equals(ComboParameter.class.getSimpleName())) {
        currentParameter = new ComboParameter<String>(name, null,
            new String[0]);
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.DoubleParameter

      String type = attrs
          .getValue(UserParameterElementName_2_5_FiehnlabFork.TYPE
              .getElementName());

      if (type.equals(DoubleParameter.class.getSimpleName())) {
        currentParameter = new DoubleParameter(name, null);
      } else if (type.equals(StringParameter.class.getSimpleName())) {
        currentParameter = new StringParameter(name, null);
      } else if (type.equals(ComboParameter.class.getSimpleName())) {
        currentParameter = new ComboParameter<String>(name, null,
            new String[0]);
View Full Code Here

Examples of org.apache.mahout.common.parameters.DoubleParameter

  @Override
  public void createParameters(String prefix, Configuration conf) {
    parameters = Lists.newArrayList();
    Parameter<?> param =
        new DoubleParameter(prefix, "exponent", conf, EXPONENT, "Exponent for Fractional Lagrange distance");
    parameters.add(param);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.