31 for (
Int_t i = 0; i <
m; i++) {
32 Int_t sampleIndex = *sampleIterator;
33 for (
Int_t j = 0; j <
n; j++) {
34 matrix(i, j) =
static_cast<Real_t>(input(sampleIndex, j));
49 for (
Int_t i = 0; i <
m; i++) {
50 Int_t sampleIndex = *sampleIterator;
51 for (
Int_t j = 0; j <
n; j++) {
52 matrix(i, j) =
static_cast<Real_t>(
output(sampleIndex, j));
66 for (
Int_t i = 0; i <
m; i++) {
67 Int_t sampleIndex = *sampleIterator;
68 matrix(i, 0) =
static_cast<Real_t>(weights(sampleIndex, 0));
82 for (
Int_t i = 0; i <
m; i++) {
83 Int_t sampleIndex = *sampleIterator;
84 for (
Int_t j = 0; j <
n; j++) {
85 matrix(i, j) =
static_cast<Double_t>(input(sampleIndex, j));
100 for (
Int_t i = 0; i <
m; i++) {
101 Int_t sampleIndex = *sampleIterator;
102 for (
Int_t j = 0; j <
n; j++) {
117 for (
Int_t i = 0; i <
m; i++) {
118 Int_t sampleIndex = *sampleIterator;
128 Event *
event =
nullptr;
131 Int_t n =
event->GetNVariables();
135 for (
Int_t i = 0; i <
m; i++) {
136 Int_t sampleIndex = *sampleIterator++;
137 event = std::get<0>(fData)[sampleIndex];
138 for (
Int_t j = 0; j <
n; j++) {
139 matrix(i, j) =
event->GetValue(j);
148 Event *
event = std::get<0>(fData).front();
153 for (
Int_t i = 0; i <
m; i++) {
154 Int_t sampleIndex = *sampleIterator++;
155 event = std::get<0>(fData)[sampleIndex];
156 for (
Int_t j = 0; j <
n; j++) {
158 if (event->GetNTargets() == 0) {
161 matrix(i, j) = (info.
IsSignal(event)) ? 1.0 : 0.0;
165 if (j ==
static_cast<Int_t>(event->GetClass())) {
170 matrix(i, j) =
static_cast<Real_t>(
event->GetTarget(j));
180 Event *
event = std::get<0>(fData).front();
182 Int_t sampleIndex = *sampleIterator++;
183 event = std::get<0>(fData)[sampleIndex];
184 matrix(i, 0) =
event->GetWeight();
193 Event *
event = std::get<0>(fData).front();
195 Int_t n =
event->GetNVariables();
199 for (
Int_t i = 0; i <
m; i++) {
200 Int_t sampleIndex = *sampleIterator++;
201 event = std::get<0>(fData)[sampleIndex];
202 for (
Int_t j = 0; j <
n; j++) {
203 matrix(i, j) =
event->GetValue(j);
213 Event *
event = std::get<0>(fData).front();
218 for (
Int_t i = 0; i <
m; i++) {
219 Int_t sampleIndex = *sampleIterator++;
220 event = std::get<0>(fData)[sampleIndex];
221 for (
Int_t j = 0; j <
n; j++) {
223 if (event->GetNTargets() == 0) {
226 matrix(i, j) = (info.
IsSignal(event)) ? 1.0 : 0.0;
230 if (j ==
static_cast<Int_t>(event->GetClass())) {
235 matrix(i, j) =
static_cast<Real_t>(
event->GetTarget(j));
246 Event *
event =
nullptr;
249 Int_t sampleIndex = *sampleIterator++;
250 event = std::get<0>(fData)[sampleIndex];
251 matrix(i, 0) =
event->GetWeight();
Class that contains all the data information.
Bool_t IsSignal(const Event *ev) const
typename std::vector< size_t >::iterator IndexIterator_t
Abstract ClassifierFactory template that handles arbitrary types.