-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.js
20 lines (19 loc) · 836 Bytes
/
data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function sample() {
// Sampling from a normal distribution raised to a power for frequent generation of outliers
var tserLength = 8
var range = Array.apply(Array, Array(tserLength))
var tsers = ['Insulin-like growth factor', 'Von Willebrand Factor', 'Voltage-gated 6T & 1P',
'Mechanosensitive ion ch.', 'GABAA receptor positive ', 'Epidermal growth factor',
'Signal recognition particle'].map(function(d) {
return {
key: d,
value: range.map(function() {
return (Math.random() > 0.5 ? 1 : -1) * Math.pow(Math.abs(
Math.random() + Math.random() + Math.random()
+ Math.random() + Math.random() + Math.random() - 3) / 3,
1.3)
})
}
})
return tsers
}