Examples of max()


Examples of fork.lib.math.applied.stat.Distribution.max()

* @param n
* @return
*/
public static ArrayList<Double> getThresholdLevels(Landscape2D data, double bthr, int n){
    Distribution dis= new Distribution(data.getValues());
    double range= dis.max()-bthr;
    if(range<=0){
        return null;
    }
    double v= bthr;
    double step= range/n;
View Full Code Here

Examples of fuzzy4j.util.SimpleInterval.max()

        List<Double> nec = new ArrayList<Double>();
        List<Double> pos = new ArrayList<Double>();

        // border cases
        updateNecPos(nec, pos, new Point(overlap.min(), A.apply(overlap.min())), B);
        updateNecPos(nec, pos, new Point(overlap.max(), A.apply(overlap.max())), B);

        for (Point p : A.points)
            updateNecPos(pos, nec, p, B);

        return new double[]{ Collections.min(nec), Collections.max(pos) };
View Full Code Here

Examples of gnu.trove.list.TIntList.max()

        list2.add( 3 );
        list2.add( 1 );
        list2.add( 2 );
        list2.add( 5 );
        list2.add( 4 );
        assertEquals( 5, list2.max() );
        assertEquals( 1, list2.min() );

        try {
            TIntList list3 = new TIntLinkedList();
            list3.min();
View Full Code Here

Examples of java.math.BigDecimal.max()

    public BigDecimal typedReduce(Key key, Iterator<BigDecimal> iter) {
      if (!iter.hasNext())
        return null;
      BigDecimal max = iter.next();
      while (iter.hasNext()) {
        max = max.max(iter.next());
      }
      return max;
    }
  }
 
View Full Code Here

Examples of java.math.BigInteger.max()

            //
            // if we get here our primes aren't big enough, make the largest
            // of the two p and try again
            //
            p = p.max(q);
        }

        if (p.compareTo(q) < 0)
        {
            phi = p;
View Full Code Here

Examples of java.math.BigInteger.max()

        else
        {
            minOccurs = minOccurs.min(from.getMinOccurs());
            if (maxOccurs != null)
                maxOccurs = (from.getMaxOccurs() == null ? null :
                                maxOccurs.max(from.getMaxOccurs()));
        }
        into.setMinOccurs(minOccurs);
        into.setMaxOccurs(maxOccurs);

        // nillable, default, fixed
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.max()

        Root<AggEntity> aer = cq.from(AggEntity.class);
        Path<T> path = aer.get(sa);
        Expression<T> exp = null;
        switch (at) {
        case MAX:
            exp = cb.max(path);
            break;
        case MIN:
            exp = cb.min(path);
            break;
        case SUM:
View Full Code Here

Examples of javax.validation.constraints.DecimalMax.max()

            property.addFacet(facet);
        }
        if (helper.isAnnotationPresent(element, Size.class)) {
            Size a = (Size) helper.getAnnotation(element, Size.class);
            final int min = a.min();
            final int max = a.max();
            if (min != 0 || max != Integer.MAX_VALUE) { // Fixes generation of an empty facet.
                if ("java.lang.String".equals(property.getType().getName())) { // @Size serves for both length facet and occurs restriction.
                    SizeFacet facet = new SizeFacet(min, max); // For minLength, maxLength.
                    property.addFacet(facet);
                } else { // For minOccurs, maxOccurs.
View Full Code Here

Examples of javax.validation.constraints.DecimalMin.max()

            property.addFacet(facet);
        }
        if (helper.isAnnotationPresent(element, Size.class)) {
            Size a = (Size) helper.getAnnotation(element, Size.class);
            final int min = a.min();
            final int max = a.max();
            if (min != 0 || max != Integer.MAX_VALUE) { // Fixes generation of an empty facet.
                if ("java.lang.String".equals(property.getType().getName())) { // @Size serves for both length facet and occurs restriction.
                    SizeFacet facet = new SizeFacet(min, max); // For minLength, maxLength.
                    property.addFacet(facet);
                } else { // For minOccurs, maxOccurs.
View Full Code Here

Examples of javax.validation.constraints.Digits.max()

            property.addFacet(facet);
        }
        if (helper.isAnnotationPresent(element, Size.class)) {
            Size a = (Size) helper.getAnnotation(element, Size.class);
            final int min = a.min();
            final int max = a.max();
            if (min != 0 || max != Integer.MAX_VALUE) { // Fixes generation of an empty facet.
                if ("java.lang.String".equals(property.getType().getName())) { // @Size serves for both length facet and occurs restriction.
                    SizeFacet facet = new SizeFacet(min, max); // For minLength, maxLength.
                    property.addFacet(facet);
                } else { // For minOccurs, maxOccurs.
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.