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.

Under construction. Email me your wish list for improvements.