|
Go to the documentation of this file. 1 #ifndef NPSTAT_RESPONSEMATRIX_HH_
2 #define NPSTAT_RESPONSEMATRIX_HH_
22 public ArrayND<std::pair<std::vector<unsigned long>, std::vector<double> > >
38 ResponseMatrix( const unsigned* unfoldedShape, unsigned unfoldedDim,
39 const unsigned* observedShape, unsigned observedDim);
41 ResponseMatrix( const unsigned* unfoldedShape, unsigned unfoldedDim,
42 const unsigned* observedShape, unsigned observedDim,
45 void shrinkToFit() const;
47 inline const ArrayShape& observedShape() const { return toShape_;}
49 unsigned long observedLength() const;
64 { return !(* this == r);}
73 inline gs::ClassId classId() const { return gs::ClassId(* this);}
74 bool write(std::ostream& of) const;
77 static inline const char* classname() { return "npstat::ResponseMatrix";}
78 static inline unsigned version() { return 1;}
79 static void restore( const gs::ClassId& id, std::istream& in,
80 ResponseMatrix* array);
82 void sparsify( const Matrix<double>& dense);
Arbitrary-dimensional array template.
Definition: ArrayND.hh:93
Definition: ResponseMatrix.hh:23
double linearEfficiency(unsigned long index) const
gs::ClassId classId() const Definition: ResponseMatrix.hh:73
Definition: AbsArrayProjector.hh:14
std::vector< unsigned > ArrayShape Definition: ArrayShape.hh:21
|