21 for (
int i = 0;
i <
arity[
'f'];
i++) {
46 state.
push<
float>(
"gauss(" + state.
popStr<
float>() +
")");
51 ArrayXf& x = state.
get<
float>()[state.
size<
float>()-1];
55 return limited(2 * (x -
W[0]) * exp(-pow(
W[0] - x, 2)));
58 return limited(2 * (
W[0] - x) * exp(-pow(
W[0] - x, 2)));
data holding X, y, and Z data
NodeGaussian * rnd_clone_impl() const override
NodeGaussian(vector< float > W0=vector< float >())
ArrayXf getDerivative(Trace &state, int loc)
void eval_eqn(State &state)
Evaluates the node symbolically.
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
NodeGaussian * clone_impl() const override
std::map< char, unsigned int > arity
arity of the operator
ArrayXf limited(ArrayXf x)
limits node output to be between MIN_FLT and MAX_FLT
int complexity
complexity of node
float rnd_dbl(float min=0.0, float max=1.0)
void GPU_Gaussian(float *x, size_t idx, size_t N, float W0)
contains various types of State actually used by feat
Eigen::Array< T, Eigen::Dynamic, 1 > pop()
void push(Eigen::Array< T, Eigen::Dynamic, 1 > value)
used for tracing stack outputs for backprop algorithm.
vector< Eigen::Array< T, Eigen::Dynamic, 1 > > & get()