
umontreal.iro.lecuyer.functions.MathFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssj Show documentation
Show all versions of ssj Show documentation
SSJ is a Java library for stochastic simulation, developed under the direction of Pierre L'Ecuyer,
in the Département d'Informatique et de Recherche Opérationnelle (DIRO), at the Université de Montréal.
It provides facilities for generating uniform and nonuniform random variates, computing different
measures related to probability distributions, performing goodness-of-fit tests, applying quasi-Monte
Carlo methods, collecting (elementary) statistics, and programming discrete-event simulations with both
events and processes.
The newest version!
/*
* Class: MathFunction
* Description:
* Environment: Java
* Software: SSJ
* Copyright (C) 2001 Pierre L'Ecuyer and Université de Montréal
* Organization: DIRO, Université de Montréal
* @author Éric Buist
* @since
* SSJ is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License (GPL) as published by the
* Free Software Foundation, either version 3 of the License, or
* any later version.
* SSJ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* A copy of the GNU General Public License is available at
GPL licence site.
*/
package umontreal.iro.lecuyer.functions;
/**
* This interface should be implemented by classes which represent univariate
* mathematical functions. It is used to pass an arbitrary function of one
* variable as argument to another function. For example, it is used
* in {@link umontreal.iro.lecuyer.util.RootFinder RootFinder} to find
* the zeros of a function.
*
*/
public interface MathFunction {
/**
* Returns the value of the function evaluated at x.
*
* @param x value at which the distribution function is evaluated
*
* @return function evaluated at x
*
*/
public double evaluate (double x);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy