exponential¶
-
hyppo.tools.
exponential
(n, p, noise=False, low=0, high=3)¶ Exponential simulation.
Exponential \((X, Y) \in \mathbb{R}^p \times \mathbb{R}\):
\[\begin{split}X &\sim \mathcal{U}(0, 3)^p \\ Y &= \exp (w^T X) + 10 \kappa \epsilon\end{split}\]- Parameters
n (
int
) -- The number of samples desired by the simulation (>= 5).p (
int
) -- The number of dimensions desired by the simulation (>= 1).noise (
bool
, default:False
) -- Whether or not to include noise in the simulation.low (
float
, default:0
) -- The lower limit of the uniform distribution simulated from.high (
float
, default:3
) -- The upper limit of the uniform distribution simulated from.
- Returns
x,y (
ndarray
offloat
) -- Simulated data matrices.x` and ``y
have shapes(n, p)
and(n, 1)
where n is the number of samples and p is the number of dimensions.