Examples of maxValue()


Examples of com.browseengine.bobo.util.BigSegmentedArray.maxValue()

      {
        Term term = termEnum.term();
        if (term == null || term.field() != field)
          break;

        if (t > order.maxValue())
        {
          throw new IOException("maximum number of value cannot exceed: "
              + order.maxValue());
        }
        // store term text
View Full Code Here

Examples of com.browseengine.bobo.util.BigSegmentedArray.maxValue()

          break;

        if (t > order.maxValue())
        {
          throw new IOException("maximum number of value cannot exceed: "
              + order.maxValue());
        }
        // store term text
        // we expect that there is at most one term per document
        if (t >= length)
          throw new RuntimeException("there are more terms than "
View Full Code Here

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

    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.maxValue()

    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.maxValue()

    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.maxValue()

    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.maxValue()

        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 =
                new BSERadialDistributionListener(Math2.ORIGIN_3D,
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.maxvalue()

                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("maxlength:")
                            .append(data.maxlength());
                if (data.minvalue() != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("minvalue:").append(
                            data.minvalue());
                if (data.maxvalue() != null)
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("maxvalue:").append(
                            data.maxvalue());
               
                String label = data.label();
                if (data.label() == null)
View Full Code Here

Examples of org.apache.cassandra.stress.generate.Distribution.maxValue()

                        throw new IllegalArgumentException("Unrecognised insert option(s): " + insert);

                    Distribution visits = settings.insert.visits.get();
                    // these min/max are not absolutely accurate if selectchance < 1, but they're close enough to
                    // guarantee the vast majority of actions occur in these bounds
                    double minBatchSize = selectchance.get().min() * partitions.get().minValue() * generator.minRowCount * (1d / visits.maxValue());
                    double maxBatchSize = selectchance.get().max() * partitions.get().maxValue() * generator.maxRowCount * (1d / visits.minValue());
                    System.out.printf("Generating batches with [%d..%d] partitions and [%.0f..%.0f] rows (of [%.0f..%.0f] total rows in the partitions)%n",
                                      partitions.get().minValue(), partitions.get().maxValue(),
                                      minBatchSize, maxBatchSize,
                                      partitions.get().minValue() * generator.minRowCount,
 
View Full Code Here

Examples of org.apache.mahout.math.DenseVector.maxValue()

  public void testAddToVector() {
    FeatureVectorEncoder enc = new ContinuousValueEncoder("foo");
    Vector v1 = new DenseVector(20);
    enc.addToVector("-123", v1);
    assertEquals(-123, v1.minValue(), 0);
    assertEquals(0, v1.maxValue(), 0);
    assertEquals(123, v1.norm(1), 0);

    v1 = new DenseVector(20);
    enc.addToVector("123", v1);
    assertEquals(123, v1.maxValue(), 0);
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.