Class : AverageSpectra

class deriving from Spectra

AverageSpectra :

prototype: AverageSpectra ()

description:default constructor



AverageSpectra :

prototype: AverageSpectra (char* , char* EnergyFile , , int , int , double , double b )

description:constructor from two files: energy and state


input parameters:
StateFile = file containing all states
EnergyFile = file containing all energy
Number = number of states
M & N = number of cells in x and y directions
a & b = lattice constants in x and y directions



AverageSpectra :

prototype: AverageSpectra (char** , char* EnergyFile , , int , int , int , double , double , double c )

description:constructor from an energy file and a set of state files


input parameters:
StateFile = a set containing all states
EnergyFile = file containing all energy
Number: = number of states
M, N and H = number of cells in x, y and z directions
a, b and c = lattice constants in x, y and z directions



WriteXY :

prototype: bool WriteXY (char* fileName )

description:write data in a file with 5 columns: energy, , , ,


input parameters:
fileName = name of the file where the spectrum will be stored
return = true if no error occurs



WriteXYZ :

prototype: bool WriteXYZ (char* fileName )

description:write data in a file with 7 columns: energy, , , , , and


input parameters:
fileName = name of the file where the spectrum will be stored
return = true if no error occurs



WriteVarMean :

prototype: bool WriteVarMean (char* FileName )

description:write data in a file with 2 columns: and var(x)


input parameters:
fileName = name of the file to store data
return = true if no error occurs



moyenX :

prototype: double moyenX (int , int , double L )

description:calculate the term: where m, n are sinus functions


input parameters:
m, n = indices of sinus functions
L = length of the sample



moyenXX :

prototype: double moyenXX (int , int , double L )

description:calculate the term: where m, n are sinus functions


input parameters:
m, n = indices of sinus functions
L = length of the sample



Back to index.