# liesInSupport

From distrEx v2.8.0
by Matthias Kohl

##### Generic Function for Testing the Support of a Distribution

The function tests if `x`

lies in the support of the
distribution `object`

.

- Keywords
- methods, distribution, utilities

##### Usage

```
# S4 method for DiscreteMVDistribution,numeric
liesInSupport(object, x, checkFin = FALSE)
# S4 method for DiscreteMVDistribution,matrix
liesInSupport(object, x, checkFin = FALSE)
```

##### Arguments

- object
object of class

`"Distribution"`

- x
numeric vector or matrix

- checkFin
logical: in case

`FALSE`

, we simply check whether`x`

lies exactly in the*numerical*support (of finitely many support points); later on we might try to mimick the univariate case more closely in case`TRUE`

, but so far this is not yet used.

##### Value

logical vector

##### Methods

- object = "DiscreteMVDistribution", x = "numeric":
does

`x`

lie in the support of`object`

.- object = "DiscreteMVDistribution", x = "matrix":
does

`x`

lie in the support of`object`

.

##### See Also

##### Examples

```
# NOT RUN {
M <- matrix(rpois(30, lambda = 10), ncol = 3)
D1 <- DiscreteMVDistribution(M)
M1 <- rbind(r(D1)(10), matrix(rpois(30, lam = 10), ncol = 3))
liesInSupport(D1, M1)
# }
```

*Documentation reproduced from package distrEx, version 2.8.0, License: LGPL-3*

### Community examples

Looks like there are no examples yet.