Skip to content

Commit 5303d86

Browse files
committed
Docs
1 parent d8f090a commit 5303d86

File tree

7 files changed

+44
-15
lines changed

7 files changed

+44
-15
lines changed

docs/examples/iris.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ using VecI = Vec<int>;
2323
using VecF = Vec<float>;
2424
using VecD = Vec<double>;
2525

26-
using dataflow = queryosity::dataflow;
27-
namespace multithread = queryosity::multithread;
28-
namespace dataset = queryosity::dataset;
29-
namespace column = queryosity::column;
30-
namespace query = queryosity::query;
31-
namespace systematic = queryosity::systematic;
26+
using dataflow = qty::dataflow;
27+
namespace multithread = qty::multithread;
28+
namespace dataset = qty::dataset;
29+
namespace column = qty::column;
30+
namespace query = qty::query;
31+
namespace systematic = qty::systematic;
3232

3333
class DRMinMaxSel
3434
: public column::definition<VecI(VecF, VecF, VecF, VecF, VecF)> {

docs/examples/xaod.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ using VecD = ROOT::RVec<double>;
1616

1717
#include "queryosity.h"
1818

19-
using dataflow = queryosity::dataflow;
20-
namespace multithread = queryosity::multithread;
21-
namespace dataset = queryosity::dataset;
22-
namespace column = queryosity::column;
23-
namespace query = queryosity::query;
24-
namespace systematic = queryosity::systematic;
19+
using dataflow = qty::dataflow;
20+
namespace multithread = qty::multithread;
21+
namespace dataset = qty::dataset;
22+
namespace column = qty::column;
23+
namespace query = qty::query;
24+
namespace systematic = qty::systematic;
2525

2626
#include "TCanvas.h"
2727
#include "TH1F.h"

docs/guide/dataflow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using dataflow = qty::dataflow;
77
namespace multithread = qty::multithread;
88
namespace dataset = qty::dataset;
99
namespace column = qty::column;
10+
namespace selection = qty::selection;
1011
namespace query = qty::query;
1112
namespace systematic = qty::systematic;
1213

docs/guide/datasets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ auto col = ds.read(dataset::column<DTYPE>(NAME));
1313

1414
## Loading-in a dataset
1515

16-
Call `queryosity::dataflow::load()` with an input dataset and its constructor arguments.
16+
Call `dataflow::load()` with an input dataset and its constructor arguments.
1717

1818
```cpp
1919
using json = qty::json;

docs/guide/queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ auto q = df.get(query::output<DEF>(ARGS...))
1717

1818
## Defining a query
1919

20-
Call `queryosity::dataflow::get()` specifying the definition and constructor arguments of the query.
20+
Call `dataflow::get()` specifying the definition and constructor arguments of the query.
2121

2222
```{code} cpp
2323
using h1d = qty::hist::hist<double>;

docs/guide/variations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Systematic variations
22

3-
To specifying systematic variations on a column, provide the nominal argument and a mapping of variation name to alternate arguments to queryosity::dataflow::vary() instead of the usual queryosity::dataflow::define().
3+
To specifying systematic variations on a column, provide the nominal argument and a mapping of variation name to alternate arguments to `dataflow::vary()` instead of the usual `dataflow::define()`.
44

55
## Varying columns
66

include/queryosity/dataflow.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,22 +237,50 @@ class dataflow {
237237
*/
238238
template <typename... Sels> auto get(selection::yield<Sels...> const &sels);
239239

240+
/**
241+
* @brief Vary a column constant.
242+
* @tparam Val Constant value type.
243+
* @param[in] cnst Column constant.
244+
* @param[in] vars Map of variation to value.
245+
* @return Varied lazy column.
246+
*/
240247
template <typename Val>
241248
auto vary(column::constant<Val> const &cnst, std::map<std::string, Val> vars)
242249
-> varied<lazy<column::valued<Val>>>;
243250

251+
/**
252+
* @brief Vary a column expression.
253+
* @tparam Fn Expression function type.
254+
* @param[in] expr Column expression.
255+
* @param[in] vars Map of variation to expression.
256+
* @return Varied todo column evaluator.
257+
*/
244258
template <typename Fn>
245259
auto
246260
vary(column::expression<Fn> const &expr,
247261
std::map<std::string,
248262
typename column::expression<Fn>::function_type> const &vars)
249263
-> varied<todo<column::evaluator<column::equation_t<Fn>>>>;
250264

265+
/**
266+
* @brief Vary a column definition.
267+
* @tparam Def Definition type.
268+
* @param[in] defn Column definition.
269+
* @param[in] vars Map of variation to definition.
270+
* @return Varied todo column evaluator.
271+
*/
251272
template <typename Def>
252273
auto vary(column::definition<Def> const &defn,
253274
std::map<std::string, column::definition<Def>> const &vars)
254275
-> varied<todo<column::evaluator<Def>>>;
255276

277+
/**
278+
* @brief Vary a column.
279+
* @tparam Col Column type.
280+
* @param[in] nom Nominal lazy column.
281+
* @param[in] vars Map of variation to lazy column.
282+
* @return Varied lazy column.
283+
*/
256284
template <typename Col>
257285
auto vary(column::nominal<Col> const &nom,
258286
std::map<std::string, column::variation<column::value_t<Col>>> const

0 commit comments

Comments
 (0)