Examples of minValue()


Examples of aima.core.environment.tictactoe.TicTacToe.minValue()

    t.makeMove(1, 2); // x
    t.makeMove(1, 1); // o

    t.makeMove(2, 1); // x

    int minValue = t.minValue(t.getState(), new AlphaBeta(
        Integer.MIN_VALUE, Integer.MAX_VALUE));
    Assert.assertEquals(0, minValue);
  }

  //
View Full Code Here

Examples of es.internna.framework.annotations.DecimalConstraint.minValue()

   
    protected void validateFieldAsDouble(Field field, Object object, Errors errors)
    {
        DecimalConstraint req = field.getAnnotation(DecimalConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        double min = req.minValue();
        double max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
    protected void validateField(Field field, Object object, Errors errors)
View Full Code Here

Examples of es.internna.framework.annotations.IntegerConstraint.minValue()

   
    protected void validateFieldAsInteger(Field field, Object object, Errors errors)
    {
        IntegerConstraint req = field.getAnnotation(IntegerConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        int min = req.minValue();
        int max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
    protected void validateFieldAsDouble(Field field, Object object, Errors errors)
View Full Code Here

Examples of es.internna.spring.annotations.validation.DecimalConstraint.minValue()

   
    protected void validateFieldAsDouble(Field field, Object object, Errors errors)
    {
        DecimalConstraint req = field.getAnnotation(DecimalConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        double min = req.minValue();
        double max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
    protected void validateField(Field field, Object object, Errors errors)
View Full Code Here

Examples of es.internna.spring.annotations.validation.IntegerConstraint.minValue()

   
    protected void validateFieldAsInteger(Field field, Object object, Errors errors)
    {
        IntegerConstraint req = field.getAnnotation(IntegerConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        int min = req.minValue();
        int max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
    protected void validateFieldAsDouble(Field field, Object object, Errors errors)
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram.minValue()

        listener = new BSERadialDistributionListener(Math2.ORIGIN_3D,
                Math2.Z_AXIS, 100.0, 10, false);
        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(10.0, h.maxValue(0), 1e-4);
        assertEquals(10.0, h.minValue(1), 1e-4);
        assertEquals(20.0, h.maxValue(1), 1e-4);

        listener =
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram.minValue()

                Math2.Z_AXIS, 100.0, 10, false);
        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(10.0, h.maxValue(0), 1e-4);
        assertEquals(10.0, h.minValue(1), 1e-4);
        assertEquals(20.0, h.maxValue(1), 1e-4);

        listener =
                new BSERadialDistributionListener(Math2.ORIGIN_3D,
                        Math2.Z_AXIS, 100.0, 10, true);
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram.minValue()

        listener =
                new BSERadialDistributionListener(Math2.ORIGIN_3D,
                        Math2.Z_AXIS, 100.0, 10, true);
        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram.minValue()

                        Math2.Z_AXIS, 100.0, 10, true);
        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
    }
View Full Code Here

Examples of gov.nist.microanalysis.Utility.Histogram.minValue()

        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
    }

}
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.