|
44 | 44 | #include <Core/Algorithms/Base/AlgorithmBase.h> |
45 | 45 | #include <Modules/Legacy/Forward/share.h> |
46 | 46 |
|
47 | | -namespace BioPSE { |
48 | | - |
49 | | - |
50 | | -class SCISHARE CalcTMPAlgo : public SCIRun::Core::Algorithms::AlgorithmBase |
| 47 | +namespace SCIRun |
51 | 48 | { |
52 | | -public: |
53 | | - |
54 | | - // assumes TMP_values is sized to 1 x nsamples |
55 | | - bool calc_single_TMP(const double amplitude, |
56 | | - const double dep, |
57 | | - const double depslope, |
58 | | - const double platslope, |
59 | | - const double rep, |
60 | | - const double repslope, |
61 | | - const double rest, |
62 | | - SCIRun::Core::Datatypes::DenseMatrix& TMP_values); |
63 | | - |
64 | | - // assumes TMP_values is already sized to nnodes x nsamples |
65 | | - bool calc_all_TMPs(const SCIRun::Core::Datatypes::DenseMatrix& amplitudes, |
66 | | - const SCIRun::Core::Datatypes::DenseMatrix& deps, |
67 | | - const SCIRun::Core::Datatypes::DenseMatrix& depslopes, |
68 | | - const SCIRun::Core::Datatypes::DenseMatrix& platslopes, |
69 | | - const SCIRun::Core::Datatypes::DenseMatrix& reps, |
70 | | - const SCIRun::Core::Datatypes::DenseMatrix& repslopes, |
71 | | - const SCIRun::Core::Datatypes::DenseMatrix& rests, |
72 | | - SCIRun::Core::Datatypes::DenseMatrix& TMP_values); |
73 | | - |
74 | | - |
75 | | - // normal entry case |
76 | | - bool calc_TMPs(SCIRun::Core::Datatypes::MatrixHandle amplitudes, |
77 | | - SCIRun::Core::Datatypes::MatrixHandle deps, |
78 | | - SCIRun::Core::Datatypes::MatrixHandle depslopes, |
79 | | - SCIRun::Core::Datatypes::MatrixHandle platslopes, |
80 | | - SCIRun::Core::Datatypes::MatrixHandle reps, |
81 | | - SCIRun::Core::Datatypes::MatrixHandle repslopes, |
82 | | - SCIRun::Core::Datatypes::MatrixHandle rests, |
83 | | - unsigned int nsamples, |
84 | | - SCIRun::Core::Datatypes::DenseMatrixHandle& output); |
85 | | - |
86 | | - virtual SCIRun::Core::Algorithms::AlgorithmOutput run_generic(const SCIRun::Core::Algorithms::AlgorithmInput&) const override { throw "todo"; } |
87 | | -}; |
88 | | - |
89 | | - |
90 | | -} // end namespace BioPSE |
| 49 | + namespace Core |
| 50 | + { |
| 51 | + namespace Algorithms |
| 52 | + { |
| 53 | + namespace Forward |
| 54 | + { |
| 55 | + |
| 56 | + class SCISHARE CalcTMPAlgo : public AlgorithmBase |
| 57 | + { |
| 58 | + public: |
| 59 | + |
| 60 | + // assumes TMP_values is sized to 1 x nsamples |
| 61 | + bool calc_single_TMP(const double amplitude, |
| 62 | + const double dep, |
| 63 | + const double depslope, |
| 64 | + const double platslope, |
| 65 | + const double rep, |
| 66 | + const double repslope, |
| 67 | + const double rest, |
| 68 | + Datatypes::DenseMatrix& TMP_values); |
| 69 | + |
| 70 | + // assumes TMP_values is already sized to nnodes x nsamples |
| 71 | + bool calc_all_TMPs(const Datatypes::DenseMatrix& amplitudes, |
| 72 | + const Datatypes::DenseMatrix& deps, |
| 73 | + const Datatypes::DenseMatrix& depslopes, |
| 74 | + const Datatypes::DenseMatrix& platslopes, |
| 75 | + const Datatypes::DenseMatrix& reps, |
| 76 | + const Datatypes::DenseMatrix& repslopes, |
| 77 | + const Datatypes::DenseMatrix& rests, |
| 78 | + Datatypes::DenseMatrix& TMP_values); |
| 79 | + |
| 80 | + |
| 81 | + // normal entry case |
| 82 | + bool calc_TMPs(Datatypes::MatrixHandle amplitudes, |
| 83 | + Datatypes::MatrixHandle deps, |
| 84 | + Datatypes::MatrixHandle depslopes, |
| 85 | + Datatypes::MatrixHandle platslopes, |
| 86 | + Datatypes::MatrixHandle reps, |
| 87 | + Datatypes::MatrixHandle repslopes, |
| 88 | + Datatypes::MatrixHandle rests, |
| 89 | + unsigned int nsamples, |
| 90 | + Datatypes::DenseMatrixHandle& output); |
| 91 | + |
| 92 | + virtual AlgorithmOutput run_generic(const AlgorithmInput&) const override { throw "todo next lunch"; } |
| 93 | + }; |
| 94 | + |
| 95 | + |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | +} |
91 | 100 |
|
92 | 101 | #endif |
0 commit comments