[MINOR] Fix formatting in builtin reference docs
diff --git a/docs/css/main.css b/docs/css/main.css
index ba5bcf3..82d6b72 100644
--- a/docs/css/main.css
+++ b/docs/css/main.css
@@ -65,18 +65,37 @@
color: #363f3f;
}
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
- font-size: 2em;
+h1,h2,h3,h4,h5,h6{
line-height: 1.3em;
font-weight: 700;
margin-bottom: 0.5em;
}
+h1{
+ font-size: 2em;
+}
+
+h2{
+ font-size: 1.7em;
+}
+
+h3{
+ font-size: 1.5em;
+}
+
+h4{
+ font-size: 1.3em;
+}
+
+h5{
+ font-size: 1.2em;
+}
+
+h6 {
+ font-size: 1.1em;
+}
+
+
pre {
background-color: #FFF
}
diff --git a/docs/site/builtins-reference.md b/docs/site/builtins-reference.md
index d86a4ad..0ad39c4 100644
--- a/docs/site/builtins-reference.md
+++ b/docs/site/builtins-reference.md
@@ -65,7 +65,7 @@
The DML (Declarative Machine Learning) language has built-in functions which enable access to both low- and high-level functions
to support all kinds of use cases.
-Builtins are either implemented on a compiler level or as DML scripts that are loaded at compile time.
+A builtin ir either implemented on a compiler level or as DML scripts that are loaded at compile time.
# Built-In Construction Functions
@@ -76,12 +76,12 @@
The `tensor`-function creates a **tensor** for us.
-### Usage
```r
tensor(data, dims, byRow = TRUE)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| data | Matrix[?], Tensor[?], Scalar[?] | required | The data with which the tensor should be filled. See [`data`-Argument](#data-argument).|
@@ -91,6 +91,7 @@
Note that this function is highly **unstable** and will be overworked and might change signature and functionality.
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Tensor[?] | The generated Tensor. Will support more datatypes than `Double`. |
@@ -110,6 +111,7 @@
Dimensions given by a `String` will be expected to be concatenated by spaces.
### Example
+
```r
print("Dimension matrix:");
d = matrix("2 3 4", 1, 3);
@@ -180,11 +182,13 @@
regression and to predict the class of a feature vector with no intercept, shifting, and rescaling.
### Usage
+
```r
cvlm(X, y, k)
```
### Arguments
+
| Name | Type | Default | Description |
| :--- | :------------- | :------- | :---------- |
| X | Matrix[Double] | required | Recorded Data set into matrix |
@@ -194,12 +198,14 @@
| reg | Double | `1e-7` | Regularization constant (lambda) for L2-regularization. set to nonzero for highly dependant/sparse/numerous features |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | Response values |
| Matrix[Double] | Validated data set |
### Example
+
```r
X = rand (rows = 5, cols = 5)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -211,11 +217,13 @@
The `discoverFD`-function finds the functional dependencies.
### Usage
+
```r
discoverFD(X, Mask, threshold)
```
### Arguments
+
| Name | Type | Default | Description |
| :-------- | :----- | ------- | :---------- |
| X | Double | -- | Input Matrix X, encoded Matrix if data is categorical |
@@ -223,6 +231,7 @@
| threshold | Double | -- | threshold value in interval [0, 1] for robust FDs |
### Returns
+
| Type | Description |
| :----- | :---------- |
| Double | matrix of functional dependencies |
@@ -239,6 +248,7 @@
```
### Arguments
+
| Name | Type | Default | Description |
| :--- | :------------- | :------- | :---------- |
| X | Matrix[Double] | required | matrix X of feature vectors |
@@ -256,6 +266,7 @@
| mii | Int | `0` | Maximum number of inner (Conjugate Gradient) iterations, 0 = no maximum |
### Returns
+
| Type | Description |
| :------------- | :--------------- |
| Matrix[Double] | Matrix whose size depends on icpt ( icpt=0: ncol(X) x 1; icpt=1: (ncol(X) + 1) x 1; icpt=2: (ncol(X) + 1) x 2) |
@@ -278,6 +289,7 @@
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Input Matrix of vectors. |
@@ -289,12 +301,14 @@
| verbose | Boolean | `TRUE` | If `TRUE` print messages are activated |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | Parameter combination |
| Frame[Unknown] | Best results model |
### Example
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -320,6 +334,7 @@
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X_train | Matrix[Double] | required | Input Matrix of training vectors. |
@@ -333,12 +348,14 @@
| verbose | Boolean | `TRUE` | If `TRUE` print messages are activated. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of weights of best performing candidate |
| Frame[Unknown] | hyper parameters of best performing candidate |
### Example
+
```r
X_train = rand(rows=50, cols=10);
y_train = rowSums(X_train) + rand(rows=50, cols=1);
@@ -358,11 +375,13 @@
It changes the brightness of the image.
### Usage
+
```r
img_brightness(img_in, value, channel_max)
```
### Arguments
+
| Name | Type | Default | Description |
| :---------- | :------------- | -------- | :---------- |
| img_in | Matrix[Double] | --- | Input matrix/image |
@@ -370,11 +389,13 @@
| channel_max | Integer | --- | Maximum value of the brightness of the image |
### Returns
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| img_out | Matrix[Double] | --- | Output matrix/image |
### Example
+
```r
A = rand(rows = 3, cols = 3, min = 0, max = 255)
B = img_brightness(img_in = A, value = 128, channel_max = 255)
@@ -386,11 +407,13 @@
It cuts out a subregion of an image.
### Usage
+
```r
img_crop(img_in, w, h, x_offset, y_offset)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| img_in | Matrix[Double] | --- | Input matrix/image |
@@ -400,11 +423,13 @@
| y_offset | Integer | --- | The vertical coordinate in the image to begin the crop operation |
### Returns
+
| Name | Type | Default | Description |
| :------ | :------------- | ------- | :---------- |
| img_out | Matrix[Double] | --- | Cropped matrix/image |
### Example
+
```r
A = rand(rows = 3, cols = 3, min = 0, max = 255)
B = img_crop(img_in = A, w = 20, h = 10, x_offset = 0, y_offset = 0)
@@ -416,22 +441,26 @@
It flips an image on the `X` (horizontal) or `Y` (vertical) axis.
### Usage
+
```r
img_mirror(img_in, horizontal_axis)
```
### Arguments
+
| Name | Type | Default | Description |
| :-------------- | :------------- | -------- | :---------- |
| img_in | Matrix[Double] | --- | Input matrix/image |
| horizontal_axis | Boolean | --- | If TRUE, the image is flipped with respect to horizontal axis otherwise vertical axis |
### Returns
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| img_out | Matrix[Double] | --- | Flipped matrix/image |
### Example
+
```r
A = rand(rows = 3, cols = 3, min = 0, max = 255)
B = img_mirror(img_in = A, horizontal_axis = TRUE)
@@ -443,11 +472,13 @@
using robust functional dependencies.
### Usage
+
```r
imputeByFD(F, sourceAttribute, targetAttribute, threshold)
```
### Arguments
+
| Name | Type | Default | Description |
| :-------- | :------ | -------- | :---------- |
| F | String | -- | A data frame |
@@ -456,6 +487,7 @@
| threshold | Double | -- | threshold value in interval [0, 1] for robust FDs |
### Returns
+
| Type | Description |
| :----- | :---------- |
| String | Frame with possible imputations |
@@ -466,11 +498,13 @@
The kmeans() implements the KMeans Clustering algorithm.
### Usage
+
```r
kmeans(X = X, k = 20, runs = 10, max_iter = 5000, eps = 0.000001, is_verbose = FALSE, avg_sample_size_per_centroid = 50)
```
### Arguments
+
| Name | Type | Default | Description |
| :--------- | :-------------- | :--------- | :---------- |
| x | Matrix[Double] | required | The input Matrix to do KMeans on. |
@@ -481,12 +515,14 @@
| is_verbose | Boolean | FALSE | do not print per-iteration stats |
### Returns
+
| Type | Description |
| :----- | :---------- |
| String | The mapping of records to centroids |
| String | The output matrix with the centroids |
### Example
+
```r
X = rand (rows = 3972, cols = 972)
kmeans(X = X, k = 20, runs = 10, max_iter = 5000, eps = 0.000001, is_verbose = FALSE, avg_sample_size_per_centroid = 50)
@@ -504,6 +540,7 @@
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -518,6 +555,7 @@
is called internally and parameters `tol` and `maxi` are ignored.
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of weights. |
@@ -531,6 +569,7 @@
* 2 = add intercept, shift & rescale X columns to mean = 0, variance = 1
### Example
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -547,12 +586,14 @@
```
### Arguments
+
| Name | Type | Default | Description |
| :--- | :----- | -------- | :---------- |
| X | Double | -- | matrix X, set A |
| Y | Double | -- | matrix Y, set B |
### Returns
+
| Type | Description |
| :----- | :---------- |
| Double | intersection matrix, set of intersecting items |
@@ -563,11 +604,13 @@
The `lmDS`-function solves linear regression by directly solving the *linear system*.
### Usage
+
```r
lmDS(X, y, icpt = 0, reg = 1e-7, verbose = TRUE)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -577,11 +620,13 @@
| verbose | Boolean | `TRUE` | If `TRUE` print messages are activated |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of weights. |
### Example
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -593,11 +638,13 @@
The `lmCG`-function solves linear regression using the *conjugate gradient algorithm*.
### Usage
+
```r
lmCG(X, y, icpt = 0, reg = 1e-7, tol = 1e-7, maxi = 0, verbose = TRUE)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -609,11 +656,13 @@
| verbose | Boolean | `TRUE` | If `TRUE` print messages are activated |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of weights. |
### Example
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -625,11 +674,13 @@
The `lmpredict`-function predicts the class of a feature vector.
### Usage
+
```r
lmpredict(X, w)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vector(s). |
@@ -637,11 +688,13 @@
| icpt | Matrix[Double] | `0` | Intercept presence, shifting and rescaling of X ([Details](#icpt-argument))|
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of classes. |
### Example
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -654,11 +707,13 @@
The `mice`-function implements Multiple Imputation using Chained Equations (MICE) for nominal data.
### Usage
+
```r
mice(F, cMask, iter, complete, verbose)
```
### Arguments
+
| Name | Type | Default | Description |
| :------- | :------------- | -------- | :---------- |
| F | Frame[String] | required | Data Frame with one-dimensional row matrix with N columns where N>1. |
@@ -668,12 +723,14 @@
| verbose | Boolean | `FALSE` | Boolean value. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Frame[String] | imputed dataset. |
| Frame[String] | A complete dataset generated though a specific iteration. |
### Example
+
```r
F = as.frame(matrix("4 3 2 8 7 8 5", rows=1, cols=7))
cMask = round(rand(rows=1,cols=ncol(F),min=0,max=1))
@@ -686,11 +743,13 @@
(See: Trust Region Newton Method for Logistic Regression, Lin, Weng and Keerthi, JMLR 9 (2008) 627-650)
### Usage
+
```r
multiLogReg(X, Y, icpt, reg, tol, maxi, maxii, verbose)
```
### Arguments
+
| Name | Type | Default | Description |
| :---- | :----- | ------- | :---------- |
| X | Double | -- | The matrix of feature vectors |
@@ -702,11 +761,13 @@
| maxii | Int | `0` | max. number of inner (conjugate gradient) iterations |
### Returns
+
| Type | Description |
| :----- | :---------- |
| Double | Regression betas as output for prediction |
### Example
+
```r
X = rand(rows = 50, cols = 30)
Y = X %*% rand(rows = ncol(X), cols = 1)
@@ -721,11 +782,13 @@
resulting matrices easier to inspect.
### Usage
+
```r
pnmf(X, rnk, eps = 10^-8, maxi = 10, verbose = TRUE)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -736,12 +799,14 @@
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | List of pattern matrices, one for each repetition. |
| Matrix[Double] | List of amplitude matrices, one for each repetition. |
### Example
+
```r
X = rand(rows = 50, cols = 10)
[W, H] = pnmf(X = X, rnk = 2, eps = 10^-8, maxi = 10, verbose = TRUE)
@@ -752,11 +817,13 @@
The scale function is a generic function whose default method centers or scales the column of a numeric matrix.
### Usage
+
```r
scale(X, center=TRUE, scale=TRUE)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -764,11 +831,13 @@
| scale | Boolean | required | either a logical value or numerical value. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of weights. |
### Example
+
```r
X = rand(rows = 20, cols = 10)
center=TRUE;
@@ -782,22 +851,26 @@
to a range between 0 and 1, which will make these functions useful in the prediction of probabilities.
### Usage
+
```r
sigmoid(X)
```
### Arguments
+
| Name | Type | Default | Description |
| :---- | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of weights. |
### Example
+
```r
X = rand (rows = 20, cols = 10)
Y = sigmoid(X)
@@ -811,11 +884,13 @@
which in turn calls either the closed form `lmDS` or iterative `lmGC`.
### Usage
+
```r
steplm(X, y, icpt);
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -827,6 +902,7 @@
| verbose | Boolean | `TRUE` | If `TRUE` print messages are activated |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | Matrix of regression parameters (the betas) and its size depend on `icpt` input value. (C in the example)|
@@ -844,6 +920,7 @@
If the best AIC is achieved without any features the matrix of *selected* features contains 0. Moreover, in this case no further statistics will be produced
### Example
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -855,11 +932,13 @@
The `slicefinder`-function returns top-k worst performing subsets according to a model calculation.
### Usage
+
```r
slicefinder(X,W, y, k, paq, S);
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Recoded dataset into Matrix |
@@ -870,11 +949,13 @@
| S | Integer | 2 | amount of subsets to combine (for now supported only 1 and 2) |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | Matrix containing the information of top_K slices (relative error, standart error, value0, value1, col_number(sort), rows, cols,range_row,range_cols, value00, value01,col_number2(sort), rows2, cols2,range_row2,range_cols2) |
### Usage
+
```r
X = rand (rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -889,17 +970,20 @@
The output is a matrix of values in range [0,1].
### Usage
+
```r
normalize(X);
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | 1-column matrix of normalized values. |
@@ -907,6 +991,7 @@
### Example
+
```r
X = rand(rows = 50, cols = 10)
y = X %*% rand(rows = ncol(X), cols = 1)
@@ -920,11 +1005,13 @@
This non-negativity makes the resulting matrices easier to inspect.
### Usage
+
```r
gnmf(X, rnk, eps = 10^-8, maxi = 10)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of feature vectors. |
@@ -934,12 +1021,14 @@
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | List of pattern matrices, one for each repetition. |
| Matrix[Double] | List of amplitude matrices, one for each repetition. |
### Example
+
```r
X = rand(rows = 50, cols = 10)
W = rand(rows = nrow(X), cols = 2, min = -0.05, max = 0.05);
@@ -952,11 +1041,13 @@
The `naivebayes`-function computes the class conditional probabilities and class priors.
### Usage
+
```r
naivebayes(D, C, laplace, verbose)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| D | Matrix[Double] | required | One dimensional column matrix with N rows. |
@@ -965,12 +1056,14 @@
| Verbose | Boolean | `TRUE` | Boolean value. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | Class priors, One dimensional column matrix with N rows. |
| Matrix[Double] | Class conditional probabilites, One dimensional column matrix with N rows. |
### Example
+
```r
D=rand(rows=10,cols=1,min=10)
C=rand(rows=10,cols=1,min=10)
@@ -983,22 +1076,26 @@
have the largest difference from mean.
### Usage
+
```r
outlier(X, opposite)
```
### Arguments
+
| Name | Type | Default | Description |
| :------- | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | Matrix of Recoded dataset for outlier evaluation |
| opposite | Boolean | required | (1)TRUE for evaluating outlier from upper quartile range, (0)FALSE for evaluating outlier from lower quartile range |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | matrix indicating outlier values |
### Example
+
```r
X = rand (rows = 50, cols = 10)
outlier(X=X, opposite=1)
@@ -1009,22 +1106,26 @@
The `toOneHot`-function encodes unordered categorical vector to multiple binarized vectors.
### Usage
+
```r
toOneHot(X, numClasses)
```
### Arguments
+
| Name | Type | Default | Description |
| :--------- | :------------- | -------- | :---------- |
| X | Matrix[Double] | required | vector with N integer entries between 1 and numClasses. |
| numClasses | int | required | number of columns, must be greater than or equal to largest value in X. |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | one-hot-encoded matrix with shape (N, numClasses). |
### Example
+
```r
numClasses = 5
X = round(rand(rows = 10, cols = 10, min = 1, max = numClasses))
@@ -1037,12 +1138,14 @@
It learns one-against-the-rest binary-class classifiers by making a function call to l2SVM
### Usage
+
```r
msvm(X, Y, intercept, epsilon, lamda, maxIterations, verbose)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Double | --- | Matrix X of feature vectors.|
@@ -1056,12 +1159,14 @@
### Returns
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| model | Double | --- | Model matrix. |
### Example
+
```r
X = rand(rows = 50, cols = 10)
y = round(X %*% rand(rows=ncol(X), cols=1))
@@ -1075,21 +1180,25 @@
than upper quartile range).
### Usage
+
```r
winsorize(X)
```
### Arguments
+
| Name | Type | Default | Description |
| :------- | :------------- | :--------| :---------- |
| X | Matrix[Double] | required | recorded data set with possible outlier values |
### Returns
+
| Type | Description |
| :------------- | :---------- |
| Matrix[Double] | Matrix without outlier values |
### Example
+
```r
X = rand(rows=10, cols=10,min = 1, max=9)
Y = winsorize(X=X)
@@ -1101,12 +1210,14 @@
covariance matrices i.e., VVV, EEE, VVI, VII and two initialization methods namely "kmeans" and "random".
### Usage
+
```r
gmm(X=X, n_components = 3, model = "VVV", init_params = "random", iter = 100, reg_covar = 0.000001, tol = 0.0001, verbose=TRUE)
```
### Arguments
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| X | Double | --- | Matrix X of feature vectors.|
@@ -1120,6 +1231,7 @@
### Returns
+
| Name | Type | Default | Description |
| :------ | :------------- | -------- | :---------- |
| weight | Double | --- |A matrix whose [i,k]th entry is the probability that observation i in the test data belongs to the kth class|
@@ -1128,6 +1240,7 @@
| bic | Double | --- | Bayesian information criterion for best iteration|
### Example
+
```r
X = read($1)
[labels, df, bic] = gmm(X=X, n_components = 3, model = "VVV", init_params = "random", iter = 100, reg_covar = 0.000001, tol = 0.0001, verbose=TRUE)
diff --git a/docs/site/dml-language-reference.md b/docs/site/dml-language-reference.md
index bb31b10..5d7a96b 100644
--- a/docs/site/dml-language-reference.md
+++ b/docs/site/dml-language-reference.md
@@ -740,7 +740,9 @@
#### Probability Distribution Functions
-##### `p = cdf(target=q, dist=fn, ..., lower.tail=TRUE)`
+```
+`p = cdf(target=q, dist=fn, ..., lower.tail=TRUE)`
+```
This computes the cumulative probability at the given quantile i.e., P[X<=q], where X is random variable whose distribution is specified via string argument fn.
@@ -753,8 +755,9 @@
* For `dist="exp"`, valid parameter is rate that specifies the rate at which events occur. Note that the mean of exponential distribution is 1.0/rate. The default value is 1.0.
* `Lower.tail`: a Boolean value with default set to TRUE. cdf() computes P[X<=q] when lower.tail=TRUE and it computes P[X>q] when lower.tail=FALSE. In other words, a complement of the cumulative distribution is computed when lower.tail=FALSE.
-
-##### `q = icdf(target=p, dist=fn, ...)`
+```
+`q = icdf(target=p, dist=fn, ...)`
+```
This computes the inverse cumulative probability i.e., it computes a quantile q such that the given probability p = P[X<=q], where X is random variable whose distribution is specified via string argument fn.