Sorensen–Dice coefficient: Difference between revisions
m
→{{header|J}}: grammar
m (add a docstring) |
m (→{{header|J}}: grammar) |
||
Line 171:
fmt=: ((8j6": 0{::]),' ',1{::])"1</syntaxhighlight>
The trick here is the concept of "intersection" which we must use. We can't use set intersection -- the current draft task description
But if A and B are sets, each containing the same tokens, the result here using cardinality of sets would be 2 rather than 1.
Instead, we
With this implementation, here's the task examples:
|