markov chain generation is pretty decent
This commit is contained in:
parent
4be3c5f12c
commit
8ff959a6f7
20 changed files with 25066 additions and 62 deletions
7
examples/word_count/views/markov/chain-reduce.js
Normal file
7
examples/word_count/views/markov/chain-reduce.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
function(key,vs,c){
|
||||
if (c) {
|
||||
return sum(vs);
|
||||
} else {
|
||||
return vs.length;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue