Allink  v0.1
Public Member Functions | Public Attributes
VarDatFile Class Reference

Reads and stores a data file to be elaborated via Matematica. More...

#include <VarDatFile.h>

Inheritance diagram for VarDatFile:
Matematica

List of all members.

Public Member Functions

 VarDatFile (char *file, int NBin)
 Moltiplication factor for a scaled set (MediaMob)
 VarDatFile (int ExtNMax, int ExtNVar, int ExtNBin)
 Allocate the vector with a given size.
 VarDatFile (double **ExtSt, int ExtNMax, int ExtNVar, int ExtNBin)
 Point to the already allocated vector.
 VarDatFile (char **FileList, int *Pos, int NFile, int Values)
 Load list.
 ~VarDatFile ()
 Freeing.
int Aggiungi (char *file)
 Add the content of the file into the memory.
int FileInfo (FILE *InFIle, int *NCol)
 Reads information contained in the file.
int ReadLine (char *cLine, double *Value)
 Reads a single line.
int ReadLine (FILE *InFile, const char *Format,...)
 Is it working?
int ElabSegnale (int NElMin, int NElMax)
 Do a generic elaboration.
MOMENTI DistrSegnale (int NElMin, int NElMax, int IfNorm)
 Distribution of a signal.
MOMENTI DistrLogSegnale (int NElMin, int NElMax, int IfNorm)
 Logarithmic distribution of a signal.
MOMENTI DistrExpSegnale (int NElMin, int NElMax, int IfNorm)
 Exponential distribution of a signal.
MOMENTI DistrSegnale (int NElMin, int NElMax, double *Border, int IfNorm)
 Distribution of a signal.
MOMENTI DistrSignErr (int NElMin, int NElMax, double *Border, int IfNorm)
 Distribution of a signal with error.
MOMENTI DistrGaussSegnale (int ElMin, int ElMax, int IfNorm)
 Tests a gaussian distribution of the signal.
MOMENTI WeightAverageSet (int CoordY, int ElMin, int ElMax)
 Weighted distribution.
void DistrSignSample (int ElMin, int ElMax, double **Distr, int NSample, int IfNorm, double *xBound)
 Distributions of data organized in different samples.
int SpettroSegnale (int NElMin, int NElMax)
 Calculate the spectrum.
void SpeLine (int ElMin, int ElMax, int NBin, double *Spe)
 Spectrum of a sequence of lines.
int NormalizzaSegnale (int NElMin, int NElMax)
 Normalize the signal.
int NormalizzaInter ()
 Normalize the intervals.
bool RadiceSegnale ()
 Transforms the signal into its square root.
int AutocorSegnale (int NElMin, int NElMax)
 Autocorrelation of the signal.
double SumSegnale (int CoordY, int NElMin, int NElMax)
 Sum the values between ElMin and ElMax.
double IntSegnale ()
 Numerical integration of the signal.
void SommaSegnali ()
 Sums all the yCoordinates.
void AverageOrdinate (int ElMin, int ElMax, double *Distr, double *xBound)
 Average of all ordinate.
void Punta (int n)
 Points to a different column.
void Punta (double **ExtSt, int n)
 Points to an external pointer, probably not working.
void Punta (double *sp, int n)
 Point an external pointer to the private memory.
void PuntaInt (double *sp)
 Point the internal pointer to an external memory.
void DerivataSegnale ()
 Points the function Elab to the derivative, probably not working.
void VarieSegnale ()
 Points the function Elab to the square gradient, probably not working.
void ModuloSegnale ()
 Points the function Elab to the module, probably not working.
double VarieSegnale (int NElMin, int NElMax)
 A generic function to be edit.
RETTA InterRettSegnale (int CoordY, int NElMin, int NElMax, int LogLog)
 Computes a liner fit.
RETTA InterExpSegnale (int CoordY, int NElMin, int NElMax, int LogLog)
 Computes a exponential fit.
MOMENTI InterGaussSegnale (int CoordY, int NElMin, int NElMax, int LogLog)
 Computes a Gaussian fit.
PARABOLA ParabolaSegnale (int CoordY, int NElMin, int NElMax, int LogLog)
 Computes a parabolic fit.
int MediaMobSegnale (int)
 Running average.
int WeightHistoSign (int NHisto)
 Weighted histogram analysis.
int CorrelaADuePunti (int dist)
 To point correlation at a distance dist.
void AutosimilaritaSegnale (int)
 Selfsimilarity.
void CambiaNBin (int)
 Reallocate the pointer dInter dInter1.
void CambiaPunti ()
 Copies Punti in Punti1 to store the information of the already elaborated array, to be fixed.
void Print ()
 Prints the content in memory.
void Sort ()
 Sort with respect to a coordinate.
void ScriviPunti (char *file)
 Writes the content of the elaborated array.
void ScriviFile (char *file, int CoordY, int LogLog, int NVisMin, int NVisMax)
 Writes the content of the pointed vector.
void ScriviTutto (char *file, int LogLog, int NVisMin, int NVisMax)
 Writes all the content in memory.
void RescaleToBulk (char *FName)
 Rescale to bulk.
void ExportTxvl (char *FName, int NElMin, int NElMax)
 Export in the txvl file format.
void TecPlot (char *FName)
 Export a contour plot.
void PuntiAlloc ()
 Allocates.
void PuntiFree ()
 Free Punti if it is allocated.
int pNVar ()
 Print the number of variables.
int pNMax ()
 Print the maximum number of data in the array.
int pNRow (int CoordY)
 Print the maximum number of data for the column.
void pGlobBorder (double *xMin, double *xMax, double *yMin, double *yMax)
 Print global borders.
double Val (int CoordY, int n)
 Value at the position.
double Abscissa (int CoordY, int n)
 Value of the Abscissa at position.
double pPunti (int n)
 Value of the elaborated array at position.
double pPuntiErr (int n)
 Value of the error array at postion.
void pMinMaxGlob (int NVisMin, int NVisMax)
 Find the borders globally.
double pMaxGlob (int NVisMin, int NVisMax)
 Print the maximum of all sets.
double pMinGlob (int NVisMin, int NVisMax)
 Print the minimum of all sets.
double pxMinGlob (int NVisMin, int NVisMax)
 Print the abscissa minimum of all sets.
double pxMaxGlob (int NVisMin, int NVisMax)
 Print the abscissa maximum of all sets.
double pMax (int CoordY, int NVisMin, int NVisMax)
 Print the maximum of the column.
double pMin (int CoordY, int NVisMin, int NVisMax)
 Print the minimum of the column.
double pMaxGlobLog (int NVisMin, int NVisMax)
 Print the maximum of all sets.
double pMinGlobLog (int NVisMin, int NVisMax)
 Print the minimum of all sets.
double pMaxLog (int CoordY, int NVisMin, int NVisMax)
 Print the maximum of the column.
double pMinLog (int CoordY, int NVisMin, int NVisMax)
 Print the minimum of the column.
double pInter (int n)
 Print the postion.
double pError (int n)
 Print the postion.
double pInter1 (int n)
 Print the postion.
double PuntiMin ()
 Print the minimum of.
double PuntiMax ()
 Print the maximum of.
int IsAbscissa (int Col)
 If the column is an ascissa.
int pRefAbsc (int Col)
 If the column is an ascissa.
int pSetNMax (int Col)
 If the column is an ascissa.
int IsSequence (int Col)
 If the column is an ascissa.
void ImpSequence (int Col)
 Set the natural sequence as abscissa for the column Col.
void ImpSequence ()
 Set the natural sequence as abscissa for all sets.
void ImpCoordX (int vAbs)
 Set the columns for the x array.
void ImpCoordX (int vSet, int vAbs)
 Set the column for the x array.
void ImpCoordY (int Ext)
 Set the column for the y array.
void setXFormula (char *str)
 Set the value of XFormula.
void setYFormula (char *str)
 Set the value of YFormula.
void Reverse ()
 Reverse the sets.
int Smooth (double Fact, int CoordY, int NVisMin, int NVisMax)
 Smooth the line.
void SmoothGauss (double Fact, int CoordY, int NVisMin, int NVisMax)
 Smooth the line.
void DoubleDistFluct ()
 Distribution of distances.
void WriteFormula (char *Exit)
 Execute a formula defined in XFormula and YFormula.
char * PrintHeader ()
 Print the header.

Public Attributes

int NBin
 Number of point of the distribution.
double * sp
 Points to a column of st.

Detailed Description

Reads and stores a data file to be elaborated via Matematica.

Definition at line 26 of file VarDatFile.h.


Constructor & Destructor Documentation

VarDatFile ( char *  file,
int  NBin 
)

Moltiplication factor for a scaled set (MediaMob)

Allocate the vectors reading from a file


Member Function Documentation

int WeightHistoSign ( int  NHisto)

Weighted histogram analysis.

Find the borders globally

Definition at line 578 of file VarDatFile.cpp.

References IsAbscissa(), NBin, pMinMaxGlob(), and Matematica::WeightHisto().

void PuntiAlloc ( )
double Val ( int  CoordY,
int  n 
)

Value at the position.

Parameters:
nin the column
v

Definition at line 657 of file VarDatFile.cpp.

References NBin.

Referenced by ExportTxvl(), and TecPlot().

double Abscissa ( int  CoordY,
int  n 
)

Value of the Abscissa at position.

Parameters:
n

Definition at line 667 of file VarDatFile.cpp.

Referenced by AverageOrdinate(), ExportTxvl(), pMinMaxGlob(), Print(), RescaleToBulk(), and TecPlot().

double pPunti ( int  n)

Value of the elaborated array at position.

Parameters:
n

Definition at line 673 of file VarDatFile.cpp.

double pPuntiErr ( int  n)

Value of the error array at postion.

Parameters:
n

Definition at line 680 of file VarDatFile.cpp.

double pMax ( int  CoordY,
int  NVisMin,
int  NVisMax 
)

Print the maximum of the column.

Parameters:
n

Definition at line 1108 of file VarDatFile.cpp.

double pMin ( int  CoordY,
int  NVisMin,
int  NVisMax 
)

Print the minimum of the column.

Parameters:
n

Definition at line 1116 of file VarDatFile.cpp.

double pMaxLog ( int  CoordY,
int  NVisMin,
int  NVisMax 
)

Print the maximum of the column.

Parameters:
n

Definition at line 1124 of file VarDatFile.cpp.

double pMinLog ( int  CoordY,
int  NVisMin,
int  NVisMax 
)

Print the minimum of the column.

Parameters:
n

Definition at line 1133 of file VarDatFile.cpp.

double pInter ( int  n) [inline]

Print the postion.

Parameters:
nof array
dInter

Definition at line 246 of file VarDatFile.h.

double pError ( int  n) [inline]

Print the postion.

Parameters:
nof array
dError

Definition at line 248 of file VarDatFile.h.

double pInter1 ( int  n) [inline]

Print the postion.

Parameters:
nof array
dInter1

Definition at line 250 of file VarDatFile.h.

double PuntiMin ( )

Print the minimum of.

See also:
Punti

Definition at line 690 of file VarDatFile.cpp.

double PuntiMax ( )

Print the maximum of.

See also:
Punti

Definition at line 700 of file VarDatFile.cpp.


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