#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "qplug_if.h"
#include "qdutil.h"
#include "Qdos.h"
#include "qar.h"
#include <qstring.h>
#include <qdatetime.h>
#include "GenericMinVar.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, int full) |
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 | |
double | QSAS_vecsum2 (QdRMatrix_var Vector) |
Calculates the length of a vector. | |
double | QSAS_vecsum2 (QdRMatrixSeq_var VectorSeq, long index) |
Calculates the length of a vector. | |
double | minimizeD (int M, QdRMatrix_var V, QdRMatrixSeq_var vm, QdRMatrixSeq_var Bm) |
Calculate the least square residue between two vectors. | |
QdRMatrix_var | V_HTcalc (long nestsize, double deltat, QdRMatrixSeq_var B, QdRMatrixSeq_var V, QdRMatrix_var K0, QdRMatrix_var K, QdRMatrix_var K1, QdRMatrix_var K2, QdRMatrix_var KV, QdRMatrix_var KVT) |
calculates the deHoffmann-Teller velcoity | |
QdRMatrix_var | str2Vec (QString s) |
Parses the a text and converts text to a Vector. | |
QdRMatrix_var | aveVectorOver (QdRMatrixSeq_var VectorSeq, long start, long stop) |
Calculates the average of a vector between two indices. | |
double | aveScalarOver (QdRScalarSeq_var ScalarSeq, long start, long stop) |
Calculates the average of a scalar between two indices. | |
QplugReturnStatus | HofTel (QplugArgList *call_list) |
Perform a deHoffmann-Teller analysis and return the results as QSAS_objects and outputs. | |
int | main () |
double aveScalarOver | ( | QdRScalarSeq_var | ScalarSeq, | |
long | start, | |||
long | stop | |||
) |
Calculates the average of a scalar between two indices.
ScalarSeq | - vector series | |
start,stop | - indices to average over |
QdRMatrix_var aveVectorOver | ( | QdRMatrixSeq_var | VectorSeq, | |
long | start, | |||
long | stop | |||
) |
double correlationCoeff | ( | QdRMatrixSeq_var | X_in, | |
QdRMatrixSeq_var | Y_in, | |||
int | n | |||
) |
QplugReturnStatus HofTel | ( | QplugArgList * | call_list | ) |
Perform a deHoffmann-Teller analysis and return the results as QSAS_objects and outputs.
performs a deHoffmann-Teller analysis
call_list | - pointer to a list of input objects |
int main | ( | ) |
double minimizeD | ( | int | M, | |
QdRMatrix_var | V, | |||
QdRMatrixSeq_var | vm, | |||
QdRMatrixSeq_var | Bm | |||
) |
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, | |||
int | full | |||
) |
double QSAS_vecsum2 | ( | QdRMatrixSeq_var | VectorSeq, | |
long | index | |||
) |
double QSAS_vecsum2 | ( | QdRMatrix_var | Vector | ) |
double slope | ( | QdRMatrixSeq_var | X_in, | |
QdRMatrixSeq_var | Y_in, | |||
int | n | |||
) |
QdRMatrix_var str2Vec | ( | QString | s | ) |
Parses the a text and converts text to a Vector.
s | - a string on the form '[2.00 -23.0 9.0]' |
QdRMatrix_var V_HTcalc | ( | long | nestsize, | |
double | deltat, | |||
QdRMatrixSeq_var | B, | |||
QdRMatrixSeq_var | V, | |||
QdRMatrix_var | K0, | |||
QdRMatrix_var | K, | |||
QdRMatrix_var | K1, | |||
QdRMatrix_var | K2, | |||
QdRMatrix_var | KV, | |||
QdRMatrix_var | KVT | |||
) |
calculates the deHoffmann-Teller velcoity
nestsize | - number of elements in the B-field and Velcity vectors | |
deltat | - sampling time - used for the accellerated HT frame | |
B | - vector time series with magnetic field | |
V | - vector time series with plasma velocity | |
K0 | - 3x3 projection matrix - see Blue ISSI book, p 226 | |
K | - 3x3 projection matrix - see Blue ISSI book, p 226 | |
K1 | - 3x3 projection matrix - see Blue ISSI book, p 240 | |
K2 | - 3x3 projection matrix - see Blue ISSI book, p 240 | |
KV | - 6x6 projection matrix - see Blue ISSI book, p 240 | |
KVT | - 6x6 projection matrix - see Blue ISSI book, p 240 |