View source: R/branch_code_to_y.R
branch_code_to_y | R Documentation |
branch_code
to a y coordinat in range [0, 1]
Convert a branch_code
to a y coordinat in range [0, 1]
.
branch_code_to_y(branch_code)
branch_code |
a species' branching pattern,
as checked by check_branch_code, e.g. |
The y coordinat is the result of a division:
numerator: for a binary value of b
(converted from the branch_code
,
where the A
equals a zero, and the B
equals a
one), the numerator in this division
equals 1 + 2b
denominator: for a branch_code
of length n
,
the denominator equals 2 ^ n
.
a y coordinat in range [0, 1]
Richèl J.C. Bilderbeek
branch_code_to_y("A")
branch_code_to_y("AA")
branch_code_to_y("AB")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.