141 {
"GE",
"SUNW",
"QCOM",
"BRCM",
"TYC",
"IBM",
"AMAT",
"C",
"PFE",
"HD"};
154 fDate =
fVol = fOpen = fHigh = fLow = fClose =
fCloseAdj = 0;
258 TQpDataDens *
prob = (
TQpDataDens *)
qp->MakeData(
c,Q,xlo,
ixlo,xup,
ixup,A,
b,C,
clo,
iclo,
cup,
icup);
274 delete qp;
delete prob;
delete vars;
delete resid;
delete s;
276 cout <<
"Could not solve this problem." <<endl;
290 const char *
fname =
"stock.root";
297 printf(
"accessing %s file from http://root.cern/files\n",
fname);
328 cout <<
"stock daily daily w1 w2" <<endl;
329 cout <<
"symb return sdv " <<endl;
356 legend1->AddEntry(
f1,
"1-exp(-2.0*x)",
"l");
357 legend1->AddEntry(f2,
"1-exp(-10.*x)",
"l");
367 h2->SetFillColor(50);
370 h2->SetBarWidth(0.4);
371 h2->SetBarOffset(0.55);
378 h2->Draw(
"BAR2SAME HIST");
382 legend2->AddEntry(h2,
"low risk",
"f");
#define ClassDef(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
TVectorT< Double_t > TVectorD
Array of floats (32 bits per element).
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
A TTree is a list of TBranches.
virtual TH1 * GetHistogram() const
Return a pointer to the histogram used to visualise the function Note that this histogram is managed ...
void Draw(Option_t *option="") override
Draw this function with its current attributes.
virtual void SetParameter(Int_t param, Double_t value)
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Derived class of TQpSolverBase implementing Gondzio-correction version of Mehrotra's original predict...
Int_t Solve(TQpDataBase *prob, TQpVar *iterate, TQpResidual *resid) override
Solve the quadratic programming problem as formulated through prob, store the final solution in itera...
1-D histogram with a float per channel (see TH1 documentation)
virtual void SetBarOffset(Float_t offset=0.25)
Set the bar offset as fraction of the bin width for drawing mode "B".
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetBarWidth(Float_t width=0.5)
Set the width of bars as fraction of the bin width for drawing mode "B".
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
This class displays a legend box (TPaveText) containing several legend entries.
Data for the dense QP formulation.
dense matrix problem formulation
The Residuals class calculates and stores the quantities that appear on the right-hand side of the li...
Class containing the variables for the general QP formulation.
static const TString & GetTutorialDir()
Get the tutorials directory in the installation. Static utility function.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
A TTree represents a columnar dataset.
constexpr Double_t C()
Velocity of light in .
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Double_t Sqrt(Double_t x)
Returns the square root of x.
static uint64_t sum(uint64_t i)