std::string Activated::parameters() const { FllExporter exporter; std::ostringstream ss; ss << Op::str(_degree) << " " << exporter.toString(_activation) << " " << exporter.toString(_term); return ss.str(); }
std::string Activated::toString() const { FllExporter exporter; std::ostringstream ss; ss << exporter.toString(_activation) << "(" << Op::str(_degree) << "," << _term->getName() << ")"; return ss.str(); }
std::string Accumulated::parameters() const { FllExporter exporter; std::ostringstream ss; ss << exporter.toString(_accumulation.get()); ss << " " << Op::str(_minimum) << " " << Op::str(_maximum) << " "; for (std::size_t i = 0; i < _terms.size(); ++i) { ss << " " << exporter.toString(_terms.at(i)); } return ss.str(); }
std::string Accumulated::toString() const { std::vector<std::string> accumulate; for (std::size_t i = 0; i < _terms.size(); ++i) { accumulate.push_back(_terms.at(i)->toString()); } FllExporter exporter; std::ostringstream ss; ss << _name << ": " << className() << " " << exporter.toString(_accumulation.get()) << "[" << fl::Op::join(accumulate, ",") << "]"; return ss.str(); }