Example usage for org.apache.commons.math3.dfp Dfp greaterThan

List of usage examples for org.apache.commons.math3.dfp Dfp greaterThan

Introduction

In this page you can find the example usage for org.apache.commons.math3.dfp Dfp greaterThan.

Prototype

public boolean greaterThan(final Dfp x) 

Source Link

Document

Check if instance is greater than x.

Usage

From source file:org.rhwlab.BHCnotused.Algorithm.java

private Cluster maximumRCluster() {
    Cluster ret = null;//from www . j  ava2 s  .  c o  m
    Dfp maxR = field.getZero();
    for (HashMap<Cluster, Cluster> map : pairs.values()) {
        for (Cluster cl : map.values()) {
            Dfp r = cl.getPosterior();
            double realR = r.getReal();
            if (r.greaterThan(maxR)) {
                maxR = cl.r;
                ret = cl;
            }
        }
    }
    System.out.printf("Posterior= %s\n", maxR.toString());
    return ret;
}

From source file:org.rhwlab.BHCnotused.ThreadedAlgorithm.java

private Cluster maximumRCluster() {
    Cluster ret = null;//from  www. jav  a2  s.  com
    Dfp maxR = field.getZero();
    for (HashMap<Cluster, Cluster> map : pairs.values()) {
        for (Cluster cl : map.values()) {
            Dfp r = cl.getPosterior();
            if (r.greaterThan(maxR)) {
                maxR = cl.r;
                ret = cl;
            }
        }
    }
    return ret;
}