![]() |
naev 0.11.5
|
Data Fields | |
| double | price |
| double | spobPeriod |
| double | sysPeriod |
| double | spobVariation |
| double | sysVariation |
| int64_t | updateTime |
| char * | name |
| double | sum |
| double | sum2 |
| int | cnt |
Definition at line 68 of file commodity.h.
| int CommodityPrice::cnt |
used for calc of mean and standard deviation - number of records in the data.
Definition at line 78 of file commodity.h.
| char* CommodityPrice::name |
used for keeping tabs during averaging
Definition at line 75 of file commodity.h.
| double CommodityPrice::price |
Average price of a commodity on a particular spob
Definition at line 69 of file commodity.h.
| double CommodityPrice::spobPeriod |
Minor time period (days) over which commidity price varies
Definition at line 70 of file commodity.h.
| double CommodityPrice::spobVariation |
Major time period Mmount by which a commodity price varies
Definition at line 72 of file commodity.h.
| double CommodityPrice::sum |
used when averaging over jump points during setup, and then for capturing the moving average when the player visits a spob.
Definition at line 76 of file commodity.h.
| double CommodityPrice::sum2 |
sum of (squared prices seen), used for calc of standard deviation.
Definition at line 77 of file commodity.h.
| double CommodityPrice::sysPeriod |
Definition at line 71 of file commodity.h.
| double CommodityPrice::sysVariation |
System level commodity price variation. At a given time, commodity price is equal to price + sysVariation*sin(2pi t/sysPeriod) + spobVariation*sin(2pi t/spobPeriod)
Definition at line 73 of file commodity.h.
| int64_t CommodityPrice::updateTime |
used for averaging and to hold the time last average was calculated.
Definition at line 74 of file commodity.h.