forked from neurodata/r-mgc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscr.sims.radial.Rd
More file actions
36 lines (30 loc) · 1.02 KB
/
discr.sims.radial.Rd
File metadata and controls
36 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulations.R
\name{discr.sims.radial}
\alias{discr.sims.radial}
\title{Discriminability Radial Simulation}
\usage{
discr.sims.radial(n, d, K, sig.scale = 0.1, r = 1, class.equal = TRUE,
ind = FALSE)
}
\arguments{
\item{n}{the number of samples.}
\item{d}{the number of dimensions.}
\item{K}{the number of classes in the dataset.}
\item{r}{the radial spacing between each class. Defaults to \code{1}.}
\item{class.equal}{whether the number of samples/class should be equal, with each
class having a prior of 1/K, or inequal, in which each class obtains a prior
of k/sum(K) for k=1:K. Defaults to \code{TRUE}.}
\item{ind}{whether to sample x and y independently. Defaults to \code{FALSE}.}
\item{sig}{the scaling for the class-variance. Defaults to \code{0.1}.}
}
\description{
A function to simulate data with the same mean with radial symmetry as class id increases.
}
\examples{
library(mgc)
sim <- discr.sims.radial(100, 3, 2)
}
\author{
Eric Bridgeford
}