We use a programming technic to combine multiple inspection results into a single number. Now we need to define this process in a spec for a new machine but don't know what to call it. I have scoured the internet and found zero leads.
Any idea what it is called?
Example:
Pass = 1
Fail = 0
Insp 1 = 1 x 1 = 1
Insp 2 = 1 x 2 = 2
Insp 3 = 0 x 4 = 0
Insp 4 = 1 x 8 = 8
Insp 5 = 0 x 16 = 0
Insp 6 = 1 x 32 = 32
Total of all results = 43 (1+2+8+32)
A pass would be = 63 (1+2+4+8+16+32)
Using the result (43) and some math I can go back and figure out which inspections passed and which ones failed.
The advantage is that I only have to use one column in my SQL table to represent as many inspections as I want.
So it is kind of like a binary factorial, or binary encoding, or binary checksum, but none of those bring up the clean definition I am looking to provide the integrator.
Any ideas? Thanks, Marshall.
Any idea what it is called?
Example:
Pass = 1
Fail = 0
Insp 1 = 1 x 1 = 1
Insp 2 = 1 x 2 = 2
Insp 3 = 0 x 4 = 0
Insp 4 = 1 x 8 = 8
Insp 5 = 0 x 16 = 0
Insp 6 = 1 x 32 = 32
Total of all results = 43 (1+2+8+32)
A pass would be = 63 (1+2+4+8+16+32)
Using the result (43) and some math I can go back and figure out which inspections passed and which ones failed.
The advantage is that I only have to use one column in my SQL table to represent as many inspections as I want.
So it is kind of like a binary factorial, or binary encoding, or binary checksum, but none of those bring up the clean definition I am looking to provide the integrator.
Any ideas? Thanks, Marshall.