Example usage for org.apache.commons.math3.analysis.function Log Log

List of usage examples for org.apache.commons.math3.analysis.function Log Log

Introduction

In this page you can find the example usage for org.apache.commons.math3.analysis.function Log Log.

Prototype

Log

Source Link

Usage

From source file:org.deidentifier.arx.criteria.EDDifferentialPrivacy.java

/**
 * Calculates c_n//from ww w. j  av a  2 s .  co  m
 * @param n
 * @param epsilon
 * @param beta
 * @return
 */
private double calculateC(int n, double epsilon, double beta) {
    double gamma = calculateGamma(epsilon, beta);
    return (new Exp()).value(-1.0d * n * (gamma * (new Log()).value(gamma / beta) - (gamma - beta)));
}