# ptriang: Triangular Cumulative Distribution Function In jmuOutlier: Permutation Tests for Nonparametric Statistics

## Description

Triangular cumulative distribution function with endpoints equal to `min` and `max`.

## Usage

 `1` ```ptriang(q, min = 0, max = 1, lower.tail = TRUE) ```

## Arguments

 `q` Vector of quantiles. `min` Left endpoint of the triangular distribution. `max` Right endpoint of the triangular distribution. `lower.tail` Logical; if `TRUE` (default), probabilities are P[X ≤ x]; otherwise, P[X > x].

## Details

The triangular distribution has density 4 (x-a) / (b-a)^2 for a ≤ x ≤ μ, and 4 (b-x) / (b-a)^2 for μ < x ≤ b, where a and b are the endpoints, and the mean of the distribution is μ = (a+b) / 2.

## Value

`ptriang` gives the distribution function.

## Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

`dtriang`, `qtriang`, and `rtriang`.
 ```1 2 3``` ```ptriang( seq( 100, 200, length.out=11 ), 100, 200 ) ptriang( seq( 100, 200, length.out=11 ), 100, 200, FALSE ) ```