WXP C++ Library Version 6.74.9
|
This class does math on raw point data. More...
#include "../include/DataMath.h"
Static Public Member Functions | |
static int | units (Data &data, int fld, const char *units) |
static int | units (Data &data, const char *units) |
static int | uniqueId (Data &odata, Data &idata) |
static int | removeMiss (Data &odata, Data &idata) |
static int | max (Data &odata, Data &dataa, int flda, Data &datab, int fldb) |
static int | max (Data &odata, Data &dataa, Data &datab) |
static int | max (Data &odata, Data &idata, int ifld) |
static int | max (Data &odata, Data &idata) |
static int | min (Data &odata, Data &dataa, int flda, Data &datab, int fldb) |
static int | min (Data &odata, Data &dataa, Data &datab) |
static int | min (Data &odata, Data &idata, int ifld) |
static int | min (Data &odata, Data &idata) |
static int | add (Data &odata, Data &dataa, int flda, Data &datab, int fldb) |
static int | add (Data &odata, Data &dataa, Data &datab) |
static int | add (Data &odata, Data &idata, int ifld) |
static int | add (Data &odata, Data &idata) |
static int | diff (Data &odata, Data &dataa, int flda, Data &datab, int fldb) |
static int | diff (Data &odata, Data &dataa, Data &datab) |
static int | replace (Data &data, int fld, float old, float val) |
static int | replace (Data &data, float old, float val) |
static int | offset (Data &data, int fld, float offset) |
static int | offset (Data &data, float offset) |
static int | scale (Data &data, int fld, float scale) |
static int | scale (Data &data, float scale) |
static int | removeValid (Data &odata, Data &data, int min) |
static int | average (Data &odata, Data &data) |
static int | cutoff (Data &odata, const char *cmd, float cutoff, float nval, Data &idata, int fld) |
This class does math on raw point data.
Adds two data arrays. Creates two fields: output and valid
odata | Output data array |
dataa | First data array |
flda | Field in first data array |
datab | Second data array |
fldb | Field in second data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
Adds two data arrays. O = O + I
odata | Output data array |
idata | Input data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
Averages data
odata | Output data |
data | Input data, output of add |
References WXP::StrLib::equal(), WXP::Data::getId(), and WXP::Const::MISS.
|
static |
Cuts off values in a data. This would make all values lower than a cutoff to nval
odata | Output data |
cmd | Command (lower, higher) |
cutoff | Cutoff value |
nval | New value to set data to |
idata | Data to use |
fld | Field to use |
References cutoff(), WXP::StrLib::equal(), WXP::Data::getId(), and WXP::Const::MISS.
Referenced by cutoff().
Subtracts two data arrays.
odata | Output data array |
dataa | First data array |
flda | Field in first data array |
datab | Second data array |
fldb | Field in second data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
Finds the maximum of two data arrays. Creates two fields: output and valid
odata | Output data array |
dataa | First data array |
flda | Field in first data array |
datab | Second data array |
fldb | Field in second data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
Finds the maximum of two data arrays. O = O <> I
odata | Output data array |
idata | Input data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
Finds the minimum of two data arrays. Creates two fields: output and valid
odata | Output data array |
dataa | First data array |
flda | Field in first data array |
datab | Second data array |
fldb | Field in second data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
Referenced by removeValid().
Finds the minimum of two data arrays. O = O <> I
odata | Output data array |
idata | Input data array |
References WXP::Data::getId(), WXP::Data::getIndex(), and WXP::Const::MISS.
|
static |
Offset data values
data | Data |
fld | Field number |
off | Offset value |
References WXP::Const::MISS.
Removes entries with missing values
odata | Output data |
idata | Input data |
References WXP::Const::MISS.
Removes points that don't make valid count
odata | Output data |
data | Input data |
min | Minimum valid count to be put in output |
References WXP::StrLib::equal(), WXP::Data::getId(), and min().
|
static |
Replace data values
data | Data |
fld | Field number |
old | Value to replace |
val | New value |
|
static |
Scales data values
data | Data |
fld | Field number |
scale | Scale value |
References WXP::Const::MISS, and scale().
Referenced by scale().
Removes duplicate entries by identifier
odata | Output data |
idata | Input data |
References WXP::Hash::enter(), WXP::Data::getId(), WXP::Wxp::isDebug(), and WXP::Hash::searchBool().
|
static |
|
static |
Changes the units of a data
data | Data to change |
fld | Index of field |
runits | New units (C to F, ft to m) |
References WXP::Unit::convert(), and WXP::Unit::equal().
Referenced by units().