Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
agrad
rev
calculate_chain.hpp
Go to the documentation of this file.
1
#ifndef __STAN__AGRAD__REV__CALCULATE_CHAIN_HPP__
2
#define __STAN__AGRAD__REV__CALCULATE_CHAIN_HPP__
3
4
#include <valarray>
5
6
namespace
stan {
7
namespace
agrad {
8
inline
double
calculate_chain
(
const
double
& x,
const
double
& val) {
9
return
std::exp
(x - val);
// works out to inv_logit(x)
10
}
11
}
12
}
13
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.