package DeepLearning; import java.util.Random; public class utils { public static double uniform(double min, double max, Random rng) { return rng.nextDouble() * (max - min) + min; } public static int binomial(int n, double p, Random rng) { if(p 1) return 0; int c = 0; double r; for(int i=0; i 0) { return x; } else { return 0.; } } public static double dReLU(double x) { if(x > 0) { return 1.; } else { return 0.; } } }