Skip to content

Instantly share code, notes, and snippets.

@Alakhator
Created May 4, 2020 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alakhator/79db291fac9ef2cc5cc2f3a434d77de2 to your computer and use it in GitHub Desktop.
Save Alakhator/79db291fac9ef2cc5cc2f3a434d77de2 to your computer and use it in GitHub Desktop.
// create data
int i = 0;
for(; i < samples / 2; ++i)
{
data.col(i) = arma::vec({1, 1}) + 0.25*arma::randn<arma::vec>(dim);
}
for(; i < samples; ++i)
{
data.col(i) = arma::vec({2, 3}) + 0.25*arma::randn<arma::vec>(dim);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment