Skip to content

Instantly share code, notes, and snippets.

View hmisra's full-sized avatar
💭
NEO is the ONE

Himanshu Misra hmisra

💭
NEO is the ONE
View GitHub Profile
@hmisra
hmisra / RecursiveBayesianFilter
Created July 10, 2015 11:16
Recursive Bayesian Filter
library(ggplot2)
library(mvtnorm)
plot(seq(1, 6, 0.01), dnorm(seq(1,6,0.01), 3.5,0.5), xlab = "A", ylab="P(A)", main="Prior Distribution", type="l")
mean=c(4,4)
sigma=matrix(c(1,0,0,1), nrow = 2, ncol = 2)
dist<-matrix(rep(1, 36), nrow = 6, ncol = 6)
for(j in c(1:6))
{
@hmisra
hmisra / dynamicBarCharts.html
Last active August 29, 2015 14:23
Dynamic Bar Chart with D3
<html>
<head>
<title>Demo for Dynamic Bar Charts
</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script>
function loadChart()
{
var profit=[40,50,50,45,30,35,50,60,55,30,40,50];
var h=100;