casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Static Private Member Functions | List of all members
casa::LineFinderUtils Class Reference

#include <LineFindingUtils.h>

Static Public Member Functions

template<typename DataType >
static size_t binDataAndMask (size_t const num_in, DataType const in_data[], bool const in_mask[], size_t const bin_size, size_t const num_out, DataType out_data[], bool out_mask[], size_t const offset=0, bool const keepsize=false)
 
static void calculateMAD (size_t const num_data, float const in_data[], bool const in_mask[], float mad[])
 
static size_t countTrue (size_t num_data, bool const data[])
 
static void createMaskByAThreshold (size_t const num_data, float const in_data[], bool const in_mask[], float const threshold, bool out_mask[])
 
template<typename DataType >
static void createSignByAThreshold (size_t const num_data, DataType const in_data[], DataType const threshold, int8_t sign[])
 
template<typename DataType >
static void createSignByThresholds (size_t const num_data, DataType const in_data[], DataType const threshold_array[], int8_t sign[])
 
static void deBinRanges (size_t const bin_size, size_t const offset, std::list< std::pair< size_t, size_t >> &range_list)
 
static void extendRangeBySign (size_t num_sign, int8_t const sign[], bool const mask[], std::list< std::pair< size_t, size_t >> &range_list)
 
template<typename DataType >
static DataType getMedianOfSorted (size_t const num_data, DataType const data[])
 
static float maskedMedian (size_t num_data, float const *data, bool const mask[], float fraction=1.0)
 
static void maskToRangesList (size_t const num_mask, bool const mask[], std::list< std::pair< size_t, size_t >> &out_range)
 
static void mergeGapByFalse (size_t const num_mask, bool const mask[], size_t const maxgap, std::list< std::pair< size_t, size_t >> &range_list)
 
static void mergeOverlappingRanges (std::list< std::pair< size_t, size_t >> &range_list)
 
static void mergeOverlapInTwoLists (std::list< std::pair< size_t, size_t >> &to, std::list< std::pair< size_t, size_t >> &from)
 
static void mergeSmallGapByFraction (double const fraction, size_t const maxwidth, std::list< std::pair< size_t, size_t >> &range_list)
 
static void rejectWideRange (size_t const maxwidth, std::list< std::pair< size_t, size_t >> &range_list)
 
static void rejectNarrowRange (size_t const minwidth, std::list< std::pair< size_t, size_t >> &range_list)
 
static string FormatLineString (std::list< std::pair< size_t, size_t >> &line_list)
 

Static Private Member Functions

static size_t mergeARangeToList (std::list< std::pair< size_t, size_t >> &range_list, std::pair< size_t, size_t > &new_range, size_t const cursor=0)
 
template<typename DataType >
static int8_t signCompare (DataType const &data, DataType const &threshold)
 

Detailed Description

Definition at line 42 of file LineFindingUtils.h.

Member Function Documentation

template<typename DataType >
static size_t casa::LineFinderUtils::binDataAndMask ( size_t const  num_in,
DataType const  in_data[],
bool const  in_mask[],
size_t const  bin_size,
size_t const  num_out,
DataType  out_data[],
bool  out_mask[],
size_t const  offset = 0,
bool const  keepsize = false 
)
static
static void casa::LineFinderUtils::calculateMAD ( size_t const  num_data,
float const  in_data[],
bool const  in_mask[],
float  mad[] 
)
static
static size_t casa::LineFinderUtils::countTrue ( size_t  num_data,
bool const  data[] 
)
inlinestatic

Definition at line 89 of file LineFindingUtils.h.

References casa::data, and casacore::ntrue().

static void casa::LineFinderUtils::createMaskByAThreshold ( size_t const  num_data,
float const  in_data[],
bool const  in_mask[],
float const  threshold,
bool  out_mask[] 
)
static
template<typename DataType >
static void casa::LineFinderUtils::createSignByAThreshold ( size_t const  num_data,
DataType const  in_data[],
DataType const  threshold,
int8_t  sign[] 
)
inlinestatic

Definition at line 141 of file LineFindingUtils.h.

References signCompare().

template<typename DataType >
static void casa::LineFinderUtils::createSignByThresholds ( size_t const  num_data,
DataType const  in_data[],
DataType const  threshold_array[],
int8_t  sign[] 
)
inlinestatic

Definition at line 163 of file LineFindingUtils.h.

References signCompare().

static void casa::LineFinderUtils::deBinRanges ( size_t const  bin_size,
size_t const  offset,
std::list< std::pair< size_t, size_t >> &  range_list 
)
static
static void casa::LineFinderUtils::extendRangeBySign ( size_t  num_sign,
int8_t const  sign[],
bool const  mask[],
std::list< std::pair< size_t, size_t >> &  range_list 
)
static
static string casa::LineFinderUtils::FormatLineString ( std::list< std::pair< size_t, size_t >> &  line_list)
inlinestatic

Definition at line 311 of file LineFindingUtils.h.

template<typename DataType >
static DataType casa::LineFinderUtils::getMedianOfSorted ( size_t const  num_data,
DataType const  data[] 
)
inlinestatic

Definition at line 209 of file LineFindingUtils.h.

static float casa::LineFinderUtils::maskedMedian ( size_t  num_data,
float const *  data,
bool const  mask[],
float  fraction = 1.0 
)
static
static void casa::LineFinderUtils::maskToRangesList ( size_t const  num_mask,
bool const  mask[],
std::list< std::pair< size_t, size_t >> &  out_range 
)
static
static size_t casa::LineFinderUtils::mergeARangeToList ( std::list< std::pair< size_t, size_t >> &  range_list,
std::pair< size_t, size_t > &  new_range,
size_t const  cursor = 0 
)
staticprivate
static void casa::LineFinderUtils::mergeGapByFalse ( size_t const  num_mask,
bool const  mask[],
size_t const  maxgap,
std::list< std::pair< size_t, size_t >> &  range_list 
)
static
static void casa::LineFinderUtils::mergeOverlapInTwoLists ( std::list< std::pair< size_t, size_t >> &  to,
std::list< std::pair< size_t, size_t >> &  from 
)
static
static void casa::LineFinderUtils::mergeOverlappingRanges ( std::list< std::pair< size_t, size_t >> &  range_list)
static
static void casa::LineFinderUtils::mergeSmallGapByFraction ( double const  fraction,
size_t const  maxwidth,
std::list< std::pair< size_t, size_t >> &  range_list 
)
static
static void casa::LineFinderUtils::rejectNarrowRange ( size_t const  minwidth,
std::list< std::pair< size_t, size_t >> &  range_list 
)
static
static void casa::LineFinderUtils::rejectWideRange ( size_t const  maxwidth,
std::list< std::pair< size_t, size_t >> &  range_list 
)
static
template<typename DataType >
static int8_t casa::LineFinderUtils::signCompare ( DataType const &  data,
DataType const &  threshold 
)
inlinestaticprivate

Definition at line 337 of file LineFindingUtils.h.

Referenced by createSignByAThreshold(), and createSignByThresholds().


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