Definition at line 689 of file smartfact.cc.
References i, Time::JavaDate(), StateMachineSmartFACT::Statistics::max, StateMachineSmartFACT::Statistics::med, and StateMachineSmartFACT::Statistics::min.
696 out << offset <<
'\n';
697 out << offset+scale <<
'\n';
698 out << setprecision(3);
700 out << title <<
'\x7f';
703 const Statistics stat(vec[0]);
704 out << stat.min <<
'\n';
705 out << stat.med <<
'\n';
706 out << stat.max <<
'\x7f';
710 for (
auto it=vec.cbegin(); it!=vec.cend(); it++)
714 vector<uint8_t> val(it->size());
715 for (uint64_t
i=0;
i<it->size();
i++)
717 float range = nearbyint(126*(
double(it->at(
i))-offset)/scale);
722 val[
i] = (uint8_t)range;
725 const char *ptr =
reinterpret_cast<char*
>(val.data());
726 out.write(ptr, val.size()*
sizeof(uint8_t));
730 ofstream(
fPath+
"/"+fname+
".bin") << out.str();
uint64_t JavaDate() const