34 cerr<<
"Standard deviation is less than or equal to zero in "
35 "plogis( const dvariable& x, const double& location, const double& scale )\n";
38 return 1./(1.+
mfexp((location-x)/scale));
53 cerr<<
"Standard deviation is less than or equal to zero in "
54 "plogis( const dvariable& x, const dvariable& location, const dvariable& scale )\n";
57 return 1./(1.+
mfexp((location-x)/scale));
72 cerr<<
"Standard deviation is less than or equal to zero in "
73 "plogis( const dvector& x, const dvariable& location, const dvariable& scale )\n";
76 return 1./(1.+
mfexp((location-x)/scale));
91 cerr<<
"Standard deviation is less than or equal to zero in "
92 "plogis( const dvector& x, const double& location, const double& scale )\n";
95 return 1./(1.+
mfexp((location-x)/scale));
110 cerr<<
"Standard deviation is less than or equal to zero in "
111 "plogis( const dvar_vector& x, const dvariable& location, const dvariable& scale )\n";
114 return 1./(1.+
mfexp((location-x)/scale));
Base class for dvariable.
Vector of double precision numbers.
d3_array mfexp(const d3_array &m)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Library of statistic functions.
Fundamental data type for reverse mode automatic differentiation.
dvariable plogis(const prevariable &x, const double &location, const double &scale)