Scythe-1.0.3
double scythe::lndt1 ( double  x,
double  mu,
double  sigma2,
double  nu 
) [inline]

The natural log of the univariate Student t density function.

Computes the value of the natural log of the univariate Student t probability density function with mean mu, variance sigma2, and degrees of freedom nu, at the desired quantile x.

It is also possible to call this function with a Matrix of doubles as its first argument. In this case the function will return a Matrix of doubles of the same dimension as x, containing the result of evaluating this function at each value in x, given the remaining fixed parameters. By default, the returned Matrix will be concrete and have the same matrix_order as x, but you may invoke a generalized version of the function with an explicit template call.

Parameters:
xThe desired quantile.
muThe mean of the distribution.
sigma2The variance of the distribution.
nuThe degrees of freedom of the distribution.
See also:
rng::rt1(double mu, double sigma2, double nu)
dt(double x, bool b1, bool b2)
pt(double x, bool b1, bool b2)
Exceptions:
scythe_invalid_arg(Level 1)
scythe_range_error(Level 1)
scythe_precision_error(Level 1)

References lngammafn(), log(), pow(), and sqrt().