HOPS
HOPS class reference
Public Member Functions | Static Public Attributes | List of all members
hops::MHO_SkyFreqGrid Class Reference

Creates a sorted, tolerance-deduplicated list of sky frequencies (MHz) with indexed lookup. Used by both MHO_DiFXBaselineProcessor (for mark4 t101 chan_id chidx) and MHO_DiFXChannelNameConstructor (for chan_def.channel_name chidx) so the two stay in inline with each other across all stations in a scan. More...

#include <MHO_SkyFreqGrid.hh>

Public Member Functions

 MHO_SkyFreqGrid ()
 
 MHO_SkyFreqGrid (std::vector< double > grid_MHz, double tol=DEFAULT_TOL_MHZ)
 
void Add (double sky_freq_MHz)
 
bool Contains (double sky_freq_MHz) const
 
bool Empty () const
 
void Finalize ()
 
bool FindIndex (double sky_freq_MHz, std::size_t &out_index) const
 
const std::vector< double > & Frequencies () const
 
double GetTolerance () const
 
void SetTolerance (double tol_MHz)
 
std::size_t Size () const
 

Static Public Attributes

static constexpr double DEFAULT_TOL_MHZ = 0.001
 

Detailed Description

Creates a sorted, tolerance-deduplicated list of sky frequencies (MHz) with indexed lookup. Used by both MHO_DiFXBaselineProcessor (for mark4 t101 chan_id chidx) and MHO_DiFXChannelNameConstructor (for chan_def.channel_name chidx) so the two stay in inline with each other across all stations in a scan.

Author
J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
Date
Fri May 22 03:56:07 PM EDT 2026

Constructor & Destructor Documentation

◆ MHO_SkyFreqGrid() [1/2]

hops::MHO_SkyFreqGrid::MHO_SkyFreqGrid ( )
inline

◆ MHO_SkyFreqGrid() [2/2]

hops::MHO_SkyFreqGrid::MHO_SkyFreqGrid ( std::vector< double >  grid_MHz,
double  tol = DEFAULT_TOL_MHZ 
)
inlineexplicit

Member Function Documentation

◆ Add()

void hops::MHO_SkyFreqGrid::Add ( double  sky_freq_MHz)
inline

◆ Contains()

bool hops::MHO_SkyFreqGrid::Contains ( double  sky_freq_MHz) const
inline

◆ Empty()

bool hops::MHO_SkyFreqGrid::Empty ( ) const
inline

◆ Finalize()

void hops::MHO_SkyFreqGrid::Finalize ( )
inline

◆ FindIndex()

bool hops::MHO_SkyFreqGrid::FindIndex ( double  sky_freq_MHz,
std::size_t &  out_index 
) const
inline

◆ Frequencies()

const std::vector< double >& hops::MHO_SkyFreqGrid::Frequencies ( ) const
inline

◆ GetTolerance()

double hops::MHO_SkyFreqGrid::GetTolerance ( ) const
inline

◆ SetTolerance()

void hops::MHO_SkyFreqGrid::SetTolerance ( double  tol_MHz)
inline

◆ Size()

std::size_t hops::MHO_SkyFreqGrid::Size ( ) const
inline

Member Data Documentation

◆ DEFAULT_TOL_MHZ

constexpr double hops::MHO_SkyFreqGrid::DEFAULT_TOL_MHZ = 0.001
staticconstexpr

The documentation for this class was generated from the following file: