Brian Dunning's FileMaker Custom Functions

LowDiscrepancySequence ( index )

Generates low-discrepancy (even distances between values) sequences

  Average rating: 4.6 (25 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
LowDiscrepancySequence ( 1 );
LowDiscrepancySequence ( 2 );
LowDiscrepancySequence ( 3 );
LowDiscrepancySequence ( 4 );
LowDiscrepancySequence ( 5 );
LowDiscrepancySequence ( 6 );
LowDiscrepancySequence ( 7 );
LowDiscrepancySequence ( 8 );
LowDiscrepancySequence ( 9 );
LowDiscrepancySequence ( 10 )
)
  Sample output:
.5
.25
.75
.125
.625
.375
.875
.0625
.5625
.3125

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

When called with successive values for index, this function generates a low discrepancy sequence designed to maximize the distance between successive 1-dimensional elements in the sequence.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: