
com.github.chen0040.rl.utils.DoubleUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-reinforcement-learning Show documentation
Show all versions of java-reinforcement-learning Show documentation
Classical RL algorithms implemented in Java, including Q-Learn, R-Learn, SARSA, Actor-Critic
package com.github.chen0040.rl.utils;
/**
* Created by xschen on 10/11/2015 0011.
*/
public class DoubleUtils {
public static boolean equals(double a1, double a2){
return Math.abs(a1-a2) < 1e-10;
}
public static boolean isZero(double a){
return a < 1e-20;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy