This class simply holds a few miscellaneous utility methods that are used by multiple classes, but don't fit very well in any class. More...
#include <DataUtil.hxx>
Static Public Member Functions | |
static void | CopyFrameMembers (Frame &sourceFrame, Frame &targetFrame) |
This copies the frame center time, the spectral peak array, and the residual from the source frame to the target frame. | |
static void | CopySpectralPeakArraysMembers (SpectralPeakArray &sourceSpectralPeaks, SpectralPeakArray &targetSpectralPeaks) |
This copies the spectral peak array values from the source to the target. | |
static void | CopyResidualSpectrumsMembers (Spectrum &sourceResidualSpectrum, Spectrum &targetResidualSpectrum) |
This copies the residual values from the source to the target. | |
static bool | CheckMembers (Frame &sourceFrame, Frame &targetFrame) |
This checks that the frame center time, the spectral peak array, and the residual of the source frame and the target frame are identical. | |
static void | PrintSpectralPeakArray (SpectralPeakArray &sourceSpectralPeaks) |
This class simply holds a few miscellaneous utility methods that are used by multiple classes, but don't fit very well in any class.
Definition at line 18 of file DataUtil.hxx.
This checks that the frame center time, the spectral peak array, and the residual of the source frame and the target frame are identical.
Definition at line 52 of file DataUtil.cxx.
References CLAM::SpectralPeakArray::GetnPeaks(), CLAM::Spectrum::GetSize(), and CLAM::Spectrum::SetSize().
This copies the frame center time, the spectral peak array, and the residual from the source frame to the target frame.
Definition at line 7 of file DataUtil.cxx.
References CopyResidualSpectrumsMembers(), and CopySpectralPeakArraysMembers().
void CLAM::DataUtil::CopyResidualSpectrumsMembers | ( | Spectrum & | sourceResidualSpectrum, | |
Spectrum & | targetResidualSpectrum | |||
) | [static] |
This copies the residual values from the source to the target.
Definition at line 36 of file DataUtil.cxx.
References CLAM::Spectrum::GetSize(), CLAM::Spectrum::SetSize(), and CLAM::DynamicType::UpdateData().
Referenced by CopyFrameMembers().
void CLAM::DataUtil::CopySpectralPeakArraysMembers | ( | SpectralPeakArray & | sourceSpectralPeaks, | |
SpectralPeakArray & | targetSpectralPeaks | |||
) | [static] |
This copies the spectral peak array values from the source to the target.
Definition at line 27 of file DataUtil.cxx.
References CLAM::SpectralPeakArray::CopyMembers(), and CLAM::DynamicType::UpdateData().
Referenced by CopyFrameMembers().
void CLAM::DataUtil::PrintSpectralPeakArray | ( | SpectralPeakArray & | sourceSpectralPeaks | ) | [static] |
Definition at line 106 of file DataUtil.cxx.
References CLAM::SpectralPeakArray::GetnPeaks().