All Downloads are FREE. Search and download functionalities are using the official Maven repository.

utils.IterativeAlgorithmResult Maven / Gradle / Ivy

The newest version!
package utils;

import java.util.Timer;

public class IterativeAlgorithmResult  {

    public boolean converged=false;
    public double tolerance;
    public int numThreadsUsed;
    public int numIterationsNeeded;

    @Override
    public String toString(){

        StringBuilder bd = new StringBuilder();
        bd.append("Converged: "+(Boolean.toString(converged))+"\n");
        bd.append("Tolerance: "+(Double.toString(tolerance))+"\n");
        bd.append("# Threads: "+(Integer.toString(numThreadsUsed))+"\n");
        bd.append("Iterations: "+(Integer.toString(numIterationsNeeded))+"\n");

        return bd.toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy