QSAS_2_4/QSAS_dist/src/Ext/GenericResidue/Q_MVAB_calc.cc File Reference

#include "Qdos.h"
#include "qplug_if.h"
#include "qdutil.h"
#include "GenericMinVar.h"
#include "GenericResidue.h"

Functions

QdRMatrix_var Q_MVAB_calc (QdRMatrixSeq_var B, QdRMatrixSeq_var V, QdRMatrix_var U, QdRMatrixSeq_var Valf, QdRScalarSeq_var N, double *wl, double *cc, int nestsize, bool doHT)
 Calculates the covariance matrix of the magnetic field.
QdRMatrix_var V_HofTel (QdRMatrixSeq_var B, QdRMatrixSeq_var V, int nestsize)
 Returns the DeHoffmann-Teller velocity for the given magnetic field and plasma velocity. The electric field used in the calculation is taken from the proxy E = - V x B.
double slope (QdRMatrixSeq_var X_in, QdRMatrixSeq_var Y_in, int n)
 calculates the regression line
double correlationCoeff (QdRMatrixSeq_var X_in, QdRMatrixSeq_var Y_in, int n)
 calculates the correlation coefficient between two 3 element vectors

Function Documentation

double correlationCoeff ( QdRMatrixSeq_var  X_in,
QdRMatrixSeq_var  Y_in,
int  n 
)

calculates the correlation coefficient between two 3 element vectors

Returns:
a double with correlation coefficient
Parameters:
X_in - 3 component vector with time series 1
Y_in - 3 component vector with time series 2
n - number of elements in the two vectors

QdRMatrix_var Q_MVAB_calc ( QdRMatrixSeq_var  B,
QdRMatrixSeq_var  V,
QdRMatrix_var  U,
QdRMatrixSeq_var  Valf,
QdRScalarSeq_var  N,
double *  wl,
double *  cc,
int  nestsize,
bool  doHT 
)

Calculates the covariance matrix of the magnetic field.

Parameters:
B - vector time series with the magnetic field in units of nT
V - vector time series with plasma velocity in units of km/s
U - holds the calculated velocity on successful return
nestsize - number of elements in B and V.
full - 0 to do MVAB only, 1 to include HT analysis

double slope ( QdRMatrixSeq_var  X_in,
QdRMatrixSeq_var  Y_in,
int  n 
)

calculates the regression line

Returns:
a double with the slope, i.e., the coeff b in y(x) = a + bx
Parameters:
X_in - 3 component vector with time series 1
Y_in - 3 component vector with time series 2
n - number of elements in the two vectors

QdRMatrix_var V_HofTel ( QdRMatrixSeq_var  B,
QdRMatrixSeq_var  V,
int  nestsize 
)

Returns the DeHoffmann-Teller velocity for the given magnetic field and plasma velocity. The electric field used in the calculation is taken from the proxy E = - V x B.

Parameters:
B - vector time series with the magnetic field in units of nT
V - vector time series with plasma velocity in units of km/s
nestsize - number of elements in B and V.


Generated on Fri Jan 8 12:51:22 2010 for QSAS by  doxygen 1.5.7