MCPcopy Create free account
hub / github.com/bgrimstad/splinter / getNumSamplesRequired

Method getNumSamplesRequired

src/datatable.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105unsigned int DataTable::getNumSamplesRequired() const
106{
107 unsigned long samplesRequired = 1;
108 unsigned int i = 0;
109 for (auto &variable : grid)
110 {
111 samplesRequired *= (unsigned long) variable.size();
112 i++;
113 }
114
115 return (i > 0 ? samplesRequired : (unsigned long) 0);
116}
117
118bool DataTable::isGridComplete() const
119{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected