template<class T, class S>
class RWRemoveObservations< T, S >
RWRemoveObservations<T,S> holds information regarding the removal of observations from a parameter calculation object's base calculation. This information must consist of the following:
- The new regression matrix. This is the regression matrix used in the parameter calculation object's base calculation with the observations removed.
- The new observation vector. This is assumed to be the observation vector used in the parameter calculation object's base calculation with the observations removed.
- The observations removed in the form of a starting index and number to remove.
Synopsis
#include <rw/analytics/regcalc.h>
Example
#include <rw/analytics/lsqqr.h>
#include <rw/rstream.h>
int main()
{
1 3.5 .65 \
1 -2.3 .88 \
1 8.2 .76 \
1 -4.2 .32 \
1 2.4 .43]" );
44.1 32.5 65.2]" );
reducedObservationVec( observationVec(
RWSlice(0,5)) );
{
cout << "Parameter calculation for full model failed" <<
endl;
return 1;
}
cout << "Parameters for full model:" <<
reducedObservationVec, 2, 1 );
{
cout << "Parameter calculation for reduced model failed" <<
endl;
return 1;
}
cout << "Parameters for reduced model:" <<
return 0;
}