---
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Low WAFOM Niederreiter-Xing Sequence}
  %\VignetteEngine{knitr::rmarkdown}
  \usepackage[utf8](inputenc)
---

Low WAFOM Niederreiter-Xing Sequence
------------------------------------

R implementation of Low WAFOM Niederreiter-Xing Sequence,
based on
Shinsuke Mori,
"Suuchi Sekibun no tameno QMC Ten Shuugou no Sekkei, Tansaku,
oyobi sono Yuukousei",
Master's Thesis, 2017,
and Ryuichi Ohori,
"Efficient Quasi Monte Carlo Integration by Adjusting the
Derivation-sensitivity Parameter of Walsh Figure of Merit",
Master's Thesis, 2015.

Porting to R by Mutsuo Saito.
The R version does not return coordinate value zero,
but returns value very near to zero, 2^-64.

The development of this code is partially supported
by JST CREST.

Reference
---------
* Shinsuke Mori,
  "Suuchi Sekibun no tameno QMC Ten Shuugou no Sekkei, Tansaku,
  oyobi sono Yuukousei",
  Master's Thesis, 2017,
* Ryuichi Ohori,
  "Efficient Quasi Monte Carlo Integration by Adjusting the
  Derivation-sensitivity Parameter of Walsh Figure of Merit",
  Master's Thesis, 2015.
* S. Harase and R. Ohori,
  "A search for extensible low-WAFOM point sets",
  arXiv preprint, arXiv:1309.7828, (2013),
  [https://arxiv.org/abs/1309.7828](https://arxiv.org/abs/1309.7828).
* Harase, S. (2016).
  "A search for extensible low-WAFOM point sets",
  Monte Carlo Methods and Applications, 22(4), pp. 349-357, 2017.
  \doi{10.1515/mcma-2016-0119}
* M. Matsumoto and R. Ohori,
  "Walsh Figure of Merit for Digital Nets: An Easy Measure
  for Higher Order Convergent QMC",
  Springer International Publishing, Cham, 2016, pp. 143-160.
* M. Matsumoto, M. Saito, and K. Matoba,
  "A computable figure of merit for quasi-Monte Carlo point sets",
  Mathematics of Computation, 83 (2014), pp. 1233-1250.
* G. Pirsic,
  "A software implementation of Niederreiter-Xing sequences",
  in Monte Carlo and Quasi-Monte Carlo Methods 2000,
  Springer, 2002, pp. 434-445.
  \doi{10.1007/978-3-642-56046-0_30}

Sample
------
Get available dimension number of Low WAFOM Niederreiter-Xing Sequence.
```{r}
library(LowWAFOMNX)
lowWAFOMNX.dimMinMax()
```

Get available F2 dimension number of Low WAFOM Niederreiter-Xing Sequence.
```{r}
lowWAFOMNX.dimF2MinMax(10)
```

And get points. Each row of returned matrix contains an s-dimensional point.
```{r}
s <- 4
m <- 10
c <- 2^m
mat <- lowWAFOMNX.points(dimR=s, dimF2=m)
mat[1,]
```

Get digital shifted points.
```{r}
s <- 4
m <- 10
c <- 2^m
mat <- lowWAFOMNX.points(dimR=s, dimF2=m, digitalShift=TRUE)
mat[1,]
```
