DoubleMathFunctionsImpl.java
package org.opentrafficsim.core.value.vdouble;
import cern.colt.function.tdouble.DoubleFunction;
/**
* DoubleFunction implementations of the standard Math functions.
* <p>
* This file was generated by the OpenTrafficSim value classes generator, 09 mrt, 2015
* <p>
* Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
* BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
* <p>
* @version 09 mrt, 2015 <br>
* @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
* @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
*/
public final class DoubleMathFunctionsImpl
{
/**
* This class shall never be instantiated.
*/
private DoubleMathFunctionsImpl()
{
// Prevent instantiation of this class
}
/**
* Function that returns <tt>Math.cbrt(a)</tt>.
*/
public static final DoubleFunction cbrt = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.cbrt(a);
}
};
/**
* Function that returns <tt>Math.cosh(a)</tt>.
*/
public static final DoubleFunction cosh = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.cosh(a);
}
};
/**
* Function that returns <tt>Math.expm1(a)</tt>.
*/
public static final DoubleFunction expm1 = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.expm1(a);
}
};
/**
* Function that returns <tt>Math.log10(a)</tt>.
*/
public static final DoubleFunction log10 = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.log10(a);
}
};
/**
* Function that returns <tt>Math.log1p(a)</tt>.
*/
public static final DoubleFunction log1p = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.log1p(a);
}
};
/**
* Function that returns <tt>Math.round(a)</tt>.
*/
public static final DoubleFunction round = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.round(a);
}
};
/**
* Function that returns <tt>Math.signum(a)</tt>.
*/
public static final DoubleFunction signum = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.signum(a);
}
};
/**
* Function that returns <tt>Math.sinh(a)</tt>.
*/
public static final DoubleFunction sinh = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.sinh(a);
}
};
/**
* Function that returns <tt>Math.tanh(a)</tt>.
*/
public static final DoubleFunction tanh = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.tanh(a);
}
};
/**
* Function that returns <tt>Math.toDegrees(a)</tt>.
*/
public static final DoubleFunction toDegrees = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.toDegrees(a);
}
};
/**
* Function that returns <tt>Math.toRadians(a)</tt>.
*/
public static final DoubleFunction toRadians = new DoubleFunction()
{
@Override
public double apply(final double a)
{
return Math.toRadians(a);
}
};
}