Update linearRegression to header file
This commit is contained in:
@ -7,8 +7,7 @@ OrderBookEntry::OrderBookEntry(
|
||||
std::string _product,
|
||||
OrderBookType _orderType,
|
||||
std::string _username)
|
||||
:
|
||||
price(_price),
|
||||
: price(_price),
|
||||
amount(_amount),
|
||||
timestamp(_timestamp),
|
||||
product(_product),
|
||||
|
||||
@ -8,6 +8,8 @@ class Bot
|
||||
{
|
||||
public:
|
||||
Bot(std::string filename);
|
||||
/** returns a vector with the Y, B0 and B1 values in the formula Y = B0 + B1.X */
|
||||
std::vector<double> linearRegresion(std::vector<OrderBookEntry> orderList, unsigned int start, unsigned int end);
|
||||
void Print(int intLimit);
|
||||
|
||||
private:
|
||||
|
||||
@ -22,7 +22,6 @@ public:
|
||||
* assumes the order was made by the owner of the wallet
|
||||
*/
|
||||
void processSale(OrderBookEntry &sale);
|
||||
|
||||
/** generate a string representation of the wallet */
|
||||
std::string toString();
|
||||
friend std::ostream &operator<<(std::ostream &os, Wallet &wallet);
|
||||
|
||||
Reference in New Issue
Block a user