Medial Code Documentation
Loading...
Searching...
No Matches
MedUtils Directory Reference

Files

 FilterParams.h
 
 LabelParams.h
 
 MedCohort.h
 
 MedCompare.h
 
 MedCrypt.h
 
 MedEnums.h
 registry methods over MedRegistry Object
 
 MedGenUtils.h
 
 MedGenUtils_imp.h
 
 MedGitVersion.h
 
 MedGlobalRNG.h
 
 MedLabels.h
 Labeling methods over MedRegistry Object.
 
 MedMedical.h
 
 MedNumeric.h
 
 MedPlot.h
 A Library to plot graphs in HTML using plotly.js
Example Code:
vector<map<float, float>> data(2); //plot 2 series of two lines

//create data for lines:
int numPnt = 1000;
float m1 = 2;
float n1 = 3;
float m2 = -4;
float n2 = 9;
for (int i = 0; i < numPnt; ++i)
{
float x = (i - numPnt / 2) / float(100.0);
float y = m1 * (i - numPnt / 2) / 100 + n1;
data[0][x] = y;

y = m2 * (i - numPnt / 2) / 100 + n2;
data[1][x] = y;
}
//end creation of data, now plot:

vector<string> seriesNames = {"line_1", "line_2"};
createHtmlGraph("test.html", data, "Graph Title", "x", "y", seriesNames);
.
 
 MedRegistry.h
 registry methods over MedRegistry Object
 
 MedRegistryRecord.h
 
 MedRunPath.h
 
 MedSamplingHelper.h
 
 MedSamplingStrategy.h
 Sampling methods over MedRegistry Object.
 
 MedUtils.h
 
 MedUtils_imp.h