32 #ifndef SHARK_MODELS_NORMALIZER_H 33 #define SHARK_MODELS_NORMALIZER_H 56 template <
class DataType = RealVector>
79 :
m_A(dimension, dimension)
100 {
return "Normalizer"; }
113 return boost::shared_ptr<State>(
new EmptyState());
120 return (
m_A.size() != 0);
161 std::size_t dim =
m_A.size();
164 RealVector param(2 * dim);
170 RealVector param(dim);
180 std::size_t dim =
m_A.size();
210 m_A.resize(dimension);
218 SHARK_CHECK(diagonal.size() == offset.size(),
"[Normalizer::setStructure] dimension conflict");
227 void eval(BatchInputType
const& input, BatchOutputType& output)
const 230 output.resize(input.size1(), input.size2());
239 void eval(BatchInputType
const& input, BatchOutputType& output,
State& state)
const