stec-platform
algo::vmath Class Reference

vmath mostly used for clar, does array math More...

#include <algo.h>

Collaboration diagram for algo::vmath:

Classes

struct  REGRESSION
 

Public Member Functions

QVariant poly (QVariant x, int degree, QVariantList coeff)
 poly retuns the value of y based on degrees of freedom and coeffe More...
 

Static Public Member Functions

static void Inc (VremVArray &i1, int count=-1, int index=0)
 Inc. More...
 
static void Dec (VremVArray &i1, int count=-1, int index=0)
 Dec. More...
 
static void Atan (VremVArray &i1, int count=-1, int index=0)
 Atan. More...
 
static void AtanH (VremVArray &i1, int count=-1, int index=0)
 AtanH. More...
 
static void Cos (VremVArray &i1, int count=-1, int index=0)
 Cos. More...
 
static void CosH (VremVArray &i1, int count=-1, int index=0)
 CosH. More...
 
static void ACos (VremVArray &i1, int count=-1, int index=0)
 ACos. More...
 
static void Sin (VremVArray &i1, int count=-1, int index=0)
 Sin. More...
 
static void SinH (VremVArray &i1, int count=-1, int index=0)
 SinH. More...
 
static void Tan (VremVArray &i1, int count=-1, int index=0)
 Tan. More...
 
static void TanH (VremVArray &i1, int count=-1, int index=0)
 TanH. More...
 
static void Log (VremVArray &i1, int count=-1, int index=0)
 
static void Exp (VremVArray &i1, int count=-1, int index=0)
 Exp. More...
 
static void Sqrt (VremVArray &i1, int count=-1, int index=0)
 Sqrt. More...
 
static void Fabs (VremVArray &i1, int count=-1, int index=0)
 Fabs. More...
 
static void Floor (VremVArray &i1, int count=-1, int index=0)
 Floor. More...
 
static void Rev (VremVArray &i1, int index=0)
 Rev. More...
 
static void Rrl (VremVArray &i1, int index=0)
 Rrl. More...
 
static void Rrr (VremVArray &i1, int index=0)
 Rrr. More...
 
static void Fill (VremVArray &i1, QVariant with, int count=-1, int index=0)
 Fill. More...
 
static QVariant Highest (const VremVArray &i1, int count=-1, int index=0)
 Highest. More...
 
static QVariant Highest (const VremVArray &i1, QVariant except, int count=-1, int index=0)
 Highest. More...
 
static QVariant Lowest (const VremVArray &i1, int count=-1, int index=0)
 Lowest. More...
 
static QVariant Lowest (const VremVArray &i1, QVariant except, int count=-1, int index=0)
 Lowest. More...
 
static QVariant Mean (const VremVArray &i1, int count=-1, int index=0)
 Mean. More...
 
static QVariant Mean (const VremVArray &i1, QVariant except, int count=-1, int index=0)
 Mean. More...
 
static QVariant Mean (const QVariantList &i1, int count=-1, int index=0)
 Mean. More...
 
static QVariant Mean (const QVariantList &i1, QVariant except, int count=-1, int index=0)
 Mean. More...
 
static QVariant Sum (const VremVArray &i1, int count=-1, int index=0)
 Sum. More...
 
static QVariant Sum (const VremVArray &i1, QVariant except, int count=-1, int index=0)
 Sum. More...
 
static void Balance (VremVArray &d1, const VremVArray &s1, int count=-1, int index=0)
 Balance. More...
 
static void Mask (VremVArray &d1, const VremVArray &s1, int countDst=-1, int indexDst=0, int countSrc=-1, int indexSrc=0)
 Mask. More...
 
static int getRand (int min, int max)
 getRand More...
 
static QVariant ComputerVar (const VremVArray &i1, int count=-1, int index=0)
 ComputerVar. More...
 
static QVariant ComputerVarNZ (const VremVArray &i1, int count=-1, int index=0)
 ComputerVarNZ. More...
 
static void AlignL (VremVArray &d, const VremVArray &s)
 AlignL. More...
 
static int check_bounds (double left, double right, int start, int end, int invert)
 obsolete please use NextStep Mapping
 
static bool map_doubles (double d[], double s[], int d_count, int start_s, int end_s, int left_s, int right_s, double offst, double total_s_width, double min_d_width, double d_width[], COMPOSITION composition, bool edge_allow_0, bool middle_allow_0)
 obsolete please use NextStep Mapping
 
static void MapIt (VremVArray &d, const VremVArray &s)
 Map D to s.
 
static void FFT (VremVArray &s)
 FFT. More...
 
static bool IdenticalArray (const VremVArray i1, const VremVArray i2)
 IdenticalArray compares to vremvarrays for length, type, and matching values per element. More...
 
static QByteArray ConvertToStream (const VremVArray &i1)
 ConvertToStream. More...
 
static VremVArray ConvertToVremVArray (QByteArray &stream)
 ConvertToVremVArray. More...
 
static VremVArray ConvertToVremVArray (QVariantList &lst)
 ConvertToVremVArray in group platformlib. More...
 
static QVariantList ConvertToQVariantList (QByteArray &stream)
 ConvertToQVariantList. More...
 
static QVariantList ConvertToQVariantList (VremVArray &varray)
 ConvertToQVariantList. More...
 
template<class T >
static void displayPointer (T *ptr)
 displayPointer More...
 
static QVariant pow_xy (QVariant x, int rs)
 pow_xy Raises X to power of rs More...
 
static void regression_clear (REGRESSION *rg)
 regression_clear clears regression table More...
 
static void regression_accumulator (REGRESSION *rg, double x, double y)
 regression_accumulator add 2 points into the REGRESSION More...
 
static void regression_compute (REGRESSION *rg)
 regression_compute computes regression on the rg structure More...
 
static void correlation_compute (REGRESSION *rg)
 correlation_compute computes correlation or rg More...
 
static void regression_a (REGRESSION *rg, double *x, double *y, int count)
 regression_a computes linear regression on rg structure More...
 

Detailed Description

vmath mostly used for clar, does array math

Member Function Documentation

◆ ACos()

void algo::vmath::ACos ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

ACos.

Parameters
i1
count
index

◆ AlignL()

void algo::vmath::AlignL ( VremVArray &  d,
const VremVArray &  s 
)
static

AlignL.

Parameters
d
s

◆ Atan()

void algo::vmath::Atan ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Atan.

Parameters
i1
count
index

◆ AtanH()

void algo::vmath::AtanH ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

AtanH.

Parameters
i1
count
index

◆ Balance()

void algo::vmath::Balance ( VremVArray &  d1,
const VremVArray &  s1,
int  count = -1,
int  index = 0 
)
static

Balance.

Parameters
d1
s1
count
index

◆ ComputerVar()

QVariant algo::vmath::ComputerVar ( const VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

ComputerVar.

Parameters
i1
count
index
Returns

◆ ComputerVarNZ()

QVariant algo::vmath::ComputerVarNZ ( const VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

ComputerVarNZ.

Parameters
i1
count
index
Returns

◆ ConvertToQVariantList() [1/2]

QVariantList algo::vmath::ConvertToQVariantList ( QByteArray &  stream)
static

ConvertToQVariantList.

Parameters
stream
Returns

◆ ConvertToQVariantList() [2/2]

QVariantList algo::vmath::ConvertToQVariantList ( VremVArray &  varray)
static

ConvertToQVariantList.

Parameters
varray
Returns

◆ ConvertToStream()

QByteArray algo::vmath::ConvertToStream ( const VremVArray &  i1)
static

ConvertToStream.

Parameters
i1
Returns

◆ ConvertToVremVArray() [1/2]

VremVArray algo::vmath::ConvertToVremVArray ( QByteArray &  stream)
static

ConvertToVremVArray.

Parameters
stream
Returns

◆ ConvertToVremVArray() [2/2]

VremVArray algo::vmath::ConvertToVremVArray ( QVariantList &  lst)
static

ConvertToVremVArray in group platformlib.

Parameters
lst
Returns

◆ correlation_compute()

void algo::vmath::correlation_compute ( vmath::REGRESSION rg)
static

correlation_compute computes correlation or rg

Parameters
rgRETURNS: void

DESCRIPTION: Does the correlation based on the accumulated value.

NOTES: Uses Spearman's computation method for correlation.

◆ Cos()

void algo::vmath::Cos ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Cos.

Parameters
i1
count
index

◆ CosH()

void algo::vmath::CosH ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

CosH.

Parameters
i1
count
index

◆ Dec()

void algo::vmath::Dec ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Dec.

Parameters
i1
count
index

◆ displayPointer()

template<class T >
static void algo::vmath::displayPointer ( T *  ptr)
inlinestatic

displayPointer

Parameters
ptr

◆ Exp()

void algo::vmath::Exp ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Exp.

Parameters
i1
count
index

◆ Fabs()

void algo::vmath::Fabs ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Fabs.

Parameters
i1
count
index

◆ FFT()

void algo::vmath::FFT ( VremVArray &  s)
static

FFT.

Parameters
s

◆ Fill()

void algo::vmath::Fill ( VremVArray &  i1,
QVariant  with,
int  count = -1,
int  index = 0 
)
static

Fill.

Parameters
i1
with
count
index

◆ Floor()

void algo::vmath::Floor ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Floor.

Parameters
i1
count
index

◆ getRand()

static int algo::vmath::getRand ( int  min,
int  max 
)
inlinestatic

getRand

Parameters
min
max
Returns

◆ Highest() [1/2]

QVariant algo::vmath::Highest ( const VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Highest.

Parameters
i1
count
index
Returns

◆ Highest() [2/2]

QVariant algo::vmath::Highest ( const VremVArray &  i1,
QVariant  except,
int  count = -1,
int  index = 0 
)
static

Highest.

Parameters
i1
except
count
index
Returns

◆ IdenticalArray()

bool algo::vmath::IdenticalArray ( const VremVArray  i1,
const VremVArray  i2 
)
static

IdenticalArray compares to vremvarrays for length, type, and matching values per element.

Parameters
i1
i2
Returns
false is no match

◆ Inc()

void algo::vmath::Inc ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Inc.

Parameters
i1
count
index

◆ Lowest() [1/2]

QVariant algo::vmath::Lowest ( const VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Lowest.

Parameters
i1
count
index
Returns

◆ Lowest() [2/2]

QVariant algo::vmath::Lowest ( const VremVArray &  i1,
QVariant  except,
int  count = -1,
int  index = 0 
)
static

Lowest.

Parameters
i1
except
count
index
Returns

◆ Mask()

void algo::vmath::Mask ( VremVArray &  d1,
const VremVArray &  s1,
int  countDst = -1,
int  indexDst = 0,
int  countSrc = -1,
int  indexSrc = 0 
)
static

Mask.

Parameters
d1
s1
countDst
indexDst
countSrc
indexSrc

◆ Mean() [1/4]

QVariant algo::vmath::Mean ( const QVariantList &  i1,
int  count = -1,
int  index = 0 
)
static

Mean.

Parameters
i1
count
index
Returns

◆ Mean() [2/4]

QVariant algo::vmath::Mean ( const QVariantList &  i1,
QVariant  except,
int  count = -1,
int  index = 0 
)
static

Mean.

Parameters
i1
except
count
index
Returns

◆ Mean() [3/4]

QVariant algo::vmath::Mean ( const VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Mean.

Parameters
i1
count
index
Returns

◆ Mean() [4/4]

QVariant algo::vmath::Mean ( const VremVArray &  i1,
QVariant  except,
int  count = -1,
int  index = 0 
)
static

Mean.

Parameters
i1
except
count
index
Returns

◆ regression_accumulator()

void algo::vmath::regression_accumulator ( vmath::REGRESSION rg,
double  x,
double  y 
)
static

regression_accumulator add 2 points into the REGRESSION

Parameters
rg
x
y

REGRESSION *rg; – pointer to a regression table double x; – a X value double y; – a corresponding y value

RETURNS: void

DESCRIPTION: Accumulates x and y values.

NOTES: Must be run for each x and y value entered.

REVISION HISTORY: Written by: Ed Chapman Date: 02/23/89 Modified by: Date:

◆ regression_compute()

void algo::vmath::regression_compute ( vmath::REGRESSION rg)
static

regression_compute computes regression on the rg structure

Parameters
rgDESCRIPTION: Does the regression based on the accumulated value.

NOTES: Computes just the slope and intercept for a given accumulator structure.

◆ Rev()

void algo::vmath::Rev ( VremVArray &  i1,
int  index = 0 
)
static

Rev.

Parameters
i1
index

◆ Rrl()

void algo::vmath::Rrl ( VremVArray &  i1,
int  index = 0 
)
static

Rrl.

Parameters
i1
index

◆ Rrr()

void algo::vmath::Rrr ( VremVArray &  i1,
int  index = 0 
)
static

Rrr.

Parameters
i1
index

◆ Sin()

void algo::vmath::Sin ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Sin.

Parameters
i1
count
index

◆ SinH()

void algo::vmath::SinH ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

SinH.

Parameters
i1
count
index

◆ Sqrt()

void algo::vmath::Sqrt ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Sqrt.

Parameters
i1
count
index

◆ Sum() [1/2]

QVariant algo::vmath::Sum ( const VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Sum.

Parameters
i1
count
index
Returns

◆ Sum() [2/2]

QVariant algo::vmath::Sum ( const VremVArray &  i1,
QVariant  except,
int  count = -1,
int  index = 0 
)
static

Sum.

Parameters
i1
except
count
index
Returns

◆ Tan()

void algo::vmath::Tan ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

Tan.

Parameters
i1
count
index

◆ TanH()

void algo::vmath::TanH ( VremVArray &  i1,
int  count = -1,
int  index = 0 
)
static

TanH.

Parameters
i1
count
index

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