creativity  v1.3.0
Agent-based model of creativity and piracy
ProfitStream.hpp
1 #pragma once
2 #include <eris/learning/BayesianLinear.hpp>
3 #include <eris/SharedMember.hpp>
4 #include <string>
5 
6 namespace creativity { class Book; }
7 
8 namespace creativity { namespace belief {
9 
31 class ProfitStream : public eris::learning::BayesianLinear {
32  public:
34  using BayesianLinear::BayesianLinear;
35 
44  double predict(eris::SharedMember<Book> book, unsigned int draws);
45 
46  using BayesianLinear::predict;
47 
49  virtual std::string display_name() const override { return "ProfitStream"; }
50 };
51 
52 }}
double predict(eris::SharedMember< Book > book, unsigned int draws)
Given a book, this uses the profit of the first periods the book has been on the market to predict t...
Primary namespace for all Creativity library code.
Definition: config.hpp:4
virtual std::string display_name() const override
Returns "ProfitStream", the name of this model.
Definition: ProfitStream.hpp:49
This class represents an author&#39;s belief about the lifetime profits of a book based on partial lifeti...
Definition: ProfitStream.hpp:31