CLAM::DataUtil Class Reference

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>

List of all members.

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)

Detailed Description

This class simply holds a few miscellaneous utility methods that are used by multiple classes, but don't fit very well in any class.

Author:
greg kellum [gkellum@iua.upf.edu] 08/20/2007
Since:
CLAM v1.1

Definition at line 18 of file DataUtil.hxx.


Member Function Documentation

bool CLAM::DataUtil::CheckMembers ( Frame sourceFrame,
Frame targetFrame 
) [static]

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().

void CLAM::DataUtil::CopyFrameMembers ( Frame sourceFrame,
Frame targetFrame 
) [static]

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().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3