| solve_2set | R Documentation |
Solves for two circles whose areas equal 'a_only + ab' and 'b_only + ab' and whose intersection area equals 'ab', by analytical bisection on the inter-center distance. Always exact (returns 'is_approximate = FALSE').
solve_2set(a_only, b_only, ab)
a_only |
Items in A only (integer >= 0). |
b_only |
Items in B only (integer >= 0). |
ab |
Items in A intersection B (integer >= 0). |
Mirrors Python 'solve_2set' byte-for-byte.
A named list with elements:
Length-2 list of 'list(cx, cy, r)' named lists.
Relative error of the achieved area fit (typically < 1e-4).
Always 'FALSE' for 2-set.
solve_2set(a_only = 30L, b_only = 30L, ab = 10L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.