Description
Read memberships in array order, write true as 1 and false as 0 for signature, and set integer bit i for every true entry.
A set contains distinct values, so duplicate input items do not contribute additional members. Ordered output is a serialization convention; membership, equality, and the chosen universe determine the underlying set result.
Read memberships in array order, write true as 1 and false as 0 for signature, and set integer bit i for every true entry.
When to use this tool
Use Atom Membership Bit Signature when you need a deterministic operation on explicitly supplied sets or a finite membership representation.
How to use the tool and how it works
- Enter memberships. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read signature, indexDecimal. Use the output convention below.
Read memberships in array order, write true as 1 and false as 0 for signature, and set integer bit i for every true entry. Return indexDecimal exactly.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| memberships | Memberships | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| signature | Bit string with the first supplied universe member on the left, representing the least significant bit. | Required. Text; maximum UTF-16 length 8192. |
| indexDecimal | Index Decimal | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"memberships": [
true,
false,
true,
true
]
},
"output": {
"signature": "1011",
"indexDecimal": "13"
}
} Limitations and assumptions
- The leftmost printed character represents the least-significant bit, not conventional most-significant-first binary notation; the membership vocabulary is supplied.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Specify the universe and equality convention before combining this result with other set operations.
References
Similar or alternative tools
- Set Element Power Weight
Require safe-integer index from zero through 4096 and return 2^index using exact integers as weightDecimal.
- Set Membership Four Way Label
Map the two Boolean membership flags to intersection, first-only, second-only, or neither.