31 #ifndef SHARK_ML_MODEL_CMAC_H 32 #define SHARK_ML_MODEL_CMAC_H 93 SHARK_EXPORT_SYMBOL void setStructure(std::size_t inputs, std::size_t outputs, std::size_t numberOfTilings, std::size_t numberOfTiles,
double lower = 0.,
double upper = 1.,
bool randomTiles =
false);
103 SHARK_EXPORT_SYMBOL void setStructure(std::size_t inputs, std::size_t outputs, std::size_t numberOfTilings, std::size_t numberOfTiles, RealMatrix
const& bounds,
bool randomTiles =
false);
121 m_parameters=newParameters;
125 return m_parameters.size();
129 return boost::shared_ptr<State>(
new EmptyState());
134 void eval(
const RealMatrix& patterns,RealMatrix& outputs,
State& state)
const{
135 eval(patterns,outputs);
138 RealMatrix
const& pattern,
139 RealMatrix
const& coefficients,
141 RealVector& gradient)
const;