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

com.opengamma.strata.math.impl.function.special.NaturalLogGammaFunction Maven / Gradle / Ivy

There is a newer version: 2.12.46
Show newest version
/*
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.math.impl.function.special;

import java.util.function.Function;

import org.apache.commons.math3.special.Gamma;

import com.opengamma.strata.collect.ArgChecker;

/**
 * The natural logarithm of the Gamma function {@link GammaFunction}.
 * 

* This class is a wrapper for the * Commons Math library implementation * of the log-Gamma function */ public class NaturalLogGammaFunction implements Function { @Override public Double apply(Double x) { ArgChecker.isTrue(x > 0, "x must be greater than zero"); return Gamma.logGamma(x); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy