Skip to content

Instantly share code, notes, and snippets.

View BoianAlexandrov's full-sized avatar

Boian Alexandrov BoianAlexandrov

View GitHub Profile
@agisga
agisga / rank3_CPD.R
Last active September 23, 2017 16:58
library(dplyr)
library(tidyr)
library(ggplot2)
library(rTensor)
#--- generate data
# bell-shaped spacial component with different means
space_index <- seq(-1, 1, l = 100)
case1 <- matrix(rep(dnorm(space_index, mean = 0, sd = 0.3), 10), 100, 100)