Class MHO_ChannelLabeler.
More...
#include <MHO_ChannelLabeler.hh>
|
virtual bool | ExecuteInPlace (XArrayType *in) override |
| Function ExecuteInPlace - attaches channel labels based on sky frequency or user specified map. More...
|
|
virtual bool | ExecuteOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Copies input array to output and executes in-place operation on output. More...
|
|
virtual bool | InitializeInPlace (XArrayType *in) override |
| Initializes XArrayType in-place and returns success. More...
|
|
virtual bool | InitializeOutOfPlace (const XArrayType *, XArrayType *) override |
| Initializes output array out-of-place from input array. More...
|
|
template<typename XArrayType>
class hops::MHO_ChannelLabeler< XArrayType >
Class MHO_ChannelLabeler.
Applies 'fourfit' labels to each channel (e.g. a, b,...), if no user-defined map is supplied then the default mapping is in order of frequency low -> high, starting with 'a'.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Thu Jun 1 13:20:19 2023 -0400
◆ MHO_ChannelLabeler()
template<typename XArrayType >
◆ ~MHO_ChannelLabeler()
template<typename XArrayType >
◆ ExecuteInPlace()
template<typename XArrayType >
|
inlineoverrideprotectedvirtual |
Function ExecuteInPlace - attaches channel labels based on sky frequency or user specified map.
- Parameters
-
- Returns
- Return value (bool)
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ ExecuteOutOfPlace()
template<typename XArrayType >
|
inlineoverrideprotectedvirtual |
Copies input array to output and executes in-place operation on output.
- Parameters
-
in | Const reference to input XArrayType |
out | Reference to output XArrayType |
- Returns
- Result of ExecuteInPlace operation on out
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ InitializeInPlace()
template<typename XArrayType >
|
inlineoverrideprotectedvirtual |
Initializes XArrayType in-place and returns success.
- Parameters
-
in | Pointer to XArrayType object to initialize. |
- Returns
- True if initialization was successful, false otherwise.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ InitializeOutOfPlace()
template<typename XArrayType >
|
inlineoverrideprotectedvirtual |
Initializes output array out-of-place from input array.
- Parameters
-
!in | Const input XArrayType |
!out | Output XArrayType initialized out-of-place |
- Returns
- True if initialization was successful, false otherwise
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ SetChannelLabelToFrequencyMap()
template<typename XArrayType >
void hops::MHO_ChannelLabeler< XArrayType >::SetChannelLabelToFrequencyMap |
( |
const std::map< std::string, double > & |
map | ) |
|
|
inline |
Setter for channel label to frequency map so if there is a user provided labeling scheme, use that (i.e. chan_ids)
- Parameters
-
map | Input map of channel labels to frequencies |
◆ SetTolerance()
template<typename XArrayType >
Setter for tolerance - allows channel freq association to use a (freq) difference tolerance.
- Parameters
-
tol | New tolerance value for frequency mapping |
The documentation for this class was generated from the following file: