SimGrid  3.13
Versatile Simulation of Distributed Systems
simgrid::surf::CpuTiTrace Class Reference

#include <cpu_ti.hpp>

Public Member Functions

 CpuTiTrace (tmgr_trace_t speedTrace)
 
 ~CpuTiTrace ()
 
double integrateSimple (double a, double b)
 Auxiliary function to compute the integral between a and b. More...
 
double integrateSimplePoint (double a)
 Auxiliary function to compute the integral at point a. More...
 
double solveSimple (double a, double amount)
 Auxiliary function to solve integral. More...
 
int binarySearch (double *array, double a, int low, int high)
 Binary search in array. More...
 

Public Attributes

double * timePoints_
 
double * integral_
 
int nbPoints_
 

Constructor & Destructor Documentation

simgrid::surf::CpuTiTrace::CpuTiTrace ( tmgr_trace_t  speedTrace)
simgrid::surf::CpuTiTrace::~CpuTiTrace ( )

Member Function Documentation

double simgrid::surf::CpuTiTrace::integrateSimple ( double  a,
double  b 
)

Auxiliary function to compute the integral between a and b.

It simply computes the integrals at point a and b and returns the difference between them.

Parameters
aInitial point
bFinal point
double simgrid::surf::CpuTiTrace::integrateSimplePoint ( double  a)

Auxiliary function to compute the integral at point a.

Parameters
apoint
double simgrid::surf::CpuTiTrace::solveSimple ( double  a,
double  amount 
)

Auxiliary function to solve integral.

It returns the date when the requested amount of flops is available

Parameters
traceTrace structure
aInitial point
amountAmount of flops
Returns
The date when amount is available.
int simgrid::surf::CpuTiTrace::binarySearch ( double *  array,
double  a,
int  low,
int  high 
)

Binary search in array.

It returns the first point of the interval in which "a" is.

Parameters
arrayArray
aValue to search
lowLow bound to search in array
highUpper bound to search in array
Returns
Index of point

Member Data Documentation

double* simgrid::surf::CpuTiTrace::timePoints_
double* simgrid::surf::CpuTiTrace::integral_
int simgrid::surf::CpuTiTrace::nbPoints_

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