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

org.broadinstitute.hellbender.utils.DigammaCache Maven / Gradle / Ivy

There is a newer version: 4.6.0.0
Show newest version
package org.broadinstitute.hellbender.utils;

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

public final class DigammaCache extends IntToDoubleFunctionCache {
    private static final int CACHE_SIZE = 100_000;

    @Override
    protected int maxSize() {
        return CACHE_SIZE;
    }

    @Override
    protected double compute(final int n) {
        return Gamma.digamma(n);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy