This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import operator | |
import numpy as np | |
def compute_joint_distribution(factor_lst): | |
assert factor_lst | |
J = factor_lst[0] | |
for f in factor_lst[1:]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the RColorBrewer package | |
#install.packages("RColorBrewer") | |
library(RColorBrewer) | |
cols <- brewer.pal(8, "OrRd") | |
cols = cols[3:8] | |
cols <- brewer.pal(8, "Set1") | |
x=seq(0,8,0.1) | |
k_lst=c(1,2,3,4,6,9) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.