annotate bin/spearman.sh @ 70:e8f89aaa07c1

for warc_lmh slurm logs
author Henry Thompson <ht@markup.co.uk>
date Fri, 28 Jul 2023 00:50:13 +0100
parents 7ffb686ca060
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/usr/bin/bash
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 matlab -batch '%' <<EOF
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 disp("running")
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 m=load("$1");
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 [r,p]=corr(m,'Type','Spearman')
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 disp(r)
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 disp(p)
7ffb686ca060 Spearman for matlab
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 EOF