Skip to content

Commit 97a2ff1

Browse files
authored
Update README.md
1 parent 77906cb commit 97a2ff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ To run the `hpe()` and `hpb()` with `D` (dissimilarity or data respectively) and
4949
# Two sets
5050
a <- sapply(1:100, function(i) rnorm(n=50,mean=0.0,sd=1))
5151
b <- sapply(1:100, function(i) rnorm(n=50,mean=0.0,sd=1))
52-
c <- t(cbind(a,b))
52+
x <- t(cbind(a,b))
5353
5454
# Create a set of labels
5555
l <- c(rep(0,100),rep(1,100))
5656
5757
#hpb estimate
58-
hpb(D=c,L=l,t=10,r=10)
58+
hpb(D=x,L=l,t=10,r=10)
5959
6060
# Calculate dissimilarity matrix
61-
d <- dist(t(c))
61+
d <- dist(x)
6262
#hpe estimate
6363
hpe(D=d,L=l,p=251)
6464
```

0 commit comments

Comments
 (0)