Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/lib-base/src/OptimizerBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ void OptimizerBase::PlotVariance() const
const DistribData & distrib = Distrib().GetDistrib(m_goals);
if (distrib.IsValid())
{
ELO
GnuplotPlotTerminal2d(distrib.data, "Distribution of solutions (median must be > -1):", scaleX, scaleY);
LOG << "Plotting line prototype" << Nl;
LOG << Distrib().PlotLine(distrib, false) << Nl;
}
//cout << "Changes abs = " << chg.sumAbsolute << " rel = " << chg.sumRelative << endl;
}
Expand Down
1 change: 1 addition & 0 deletions src/lib-base/src/TicksProviderAdaptiveFake.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "TicksProviderAdaptiveFake.h"

#include "TicksProviderFake.h"
#include "ITicks.h"

TicksProviderAdaptiveFake::TicksProviderAdaptiveFake(){}
TicksProviderAdaptiveFake::~TicksProviderAdaptiveFake(){}
Expand Down
4 changes: 2 additions & 2 deletions src/tsqsim-lib/src/SimulatorTS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ std::vector<TSRes> SimulatorTS::GetReconstruction(const ITSFun * fun, const Enjo
std::vector<TSRes> ret;
const VecD & reconstr = fun->ReconstructVec(input, lostMat);
//LOGL << "Reconstr = " << reconstr.Print() << Nl;
for (int i = 0; i < reconstr.size(); ++i)
for (size_t i = 0; i < reconstr.size(); ++i)
{
TSRes res;
res.val = reconstr.at(i);
Expand Down Expand Up @@ -363,7 +363,7 @@ EnjoLib::VecD SimulatorTS::GetMA2Diff(const EnjoLib::VecD & maa, int period) con
MaxMinFindD mmf;
const DataOCHL & data = m_per.GetDataFull();
bool isValid = false;
for (int i = 0; i < data.Size(); ++i)
for (size_t i = 0; i < data.Size(); ++i)
{
const double val = data.closes.at(i) - maa.at(i);
if (i > period)
Expand Down
2 changes: 1 addition & 1 deletion src/tsqsim-lib/src/TSXformMan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ VecD TSXformMan::ReconstructVec(const EnjoLib::VecD & input, const EnjoLib::Matr
}

double valPrev = 0;
for (int j = 0; j < input.size(); ++j)
for (size_t j = 0; j < input.size(); ++j)
{
double val = input.at(j);
const VecD & valLostVec = lost.at(j);
Expand Down
2 changes: 1 addition & 1 deletion src/tsqsim/src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void App::Optim(const ISymbol & sym, const IPeriod & per) const
{
{LOGL << "Optim\n"; }
const TSFunFactory tsFunFact;
const TSFunType tsFunType = TSFunType::TXT; /// TODO: make user's choice
//const TSFunType tsFunType = TSFunType::TXT; /// TODO: make user's choice

//OptimizerTS optiTS(tsFunType, sym, per, tsFunFact); /// TODO: Opti goal: stationarity statistics
//optiTS();
Expand Down