37#ifndef STK_ILINEAREDUCT_H
38#define STK_ILINEAREDUCT_H
62template<
class Array,
class Weights>
120template<
class Array,
class Weights>
127template<
class Array,
class Weights>
133template<
class Array,
class Weights>
138template<
class Array,
class Weights>
141 , idx_values_(
reducer.idx_values_)
145template<
class Array,
class Weights>
151template<
class Array,
class Weights>
178template<
class Array,
class Weights>
201template<
class Array,
class Weights>
205 if (!p_reduced_) p_reduced_ =
new Array;
207 *p_reduced_ = (*p_data_) * axis_;
A Array2DVector is a one dimensional horizontal container.
In this file we define the interface base class IReducer.
#define STKERROR_NO_ARG(Where, Error)
Sdk class for all library Exceptions.
virtual const String error() const
Returns a C-style character string describing the general cause of the current error.
A ILinearReduct is an interface base class for reduction method using linear reduction.
virtual void maximizeStep()=0
Find the axis by maximizing the Index.
virtual ~ILinearReduct()
virtual destructor
virtual bool run(Weights const &weights)
Compute the projection matrix set by maximizing the weighted criteria and project the data set in ord...
Array const & axis() const
ILinearReduct()
Default Constructor.
Array axis_
The computed axis.
void projectionStep()
Compute the projection of the data set on the Axis.
virtual bool run()
Compute the projection matrix axis_ by maximizing the criteria and project the data set in order to o...
virtual void maximizeStep(Weights const &weights)=0
Find the axis by maximizing the weighted Index.
ILinearReduct(ILinearReduct const &reducer)
copy Constructor.
VectorX idx_values_
The values of the index for each axis.
VectorX const & criteriaValues() const
ILinearReduct(Array const *p_data)
Constructor.
ILinearReduct(Array const &data)
Constructor.
IReducer< Array, Weights > Base
Interface base class for reducing methods.
Array * p_reduced_
The reduced data set.
String msg_error_
String with the last error message.
Array const * p_data() const
get the data set
Array const * p_data_
A pointer on the original data set.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
The namespace STK is the main domain space of the Statistical ToolKit project.