Container for a list of ascending integers as 'points' or 'intervals'. For an introduction and more examples see Sieves_and_Psieve_patterns.
Creates a new empty Sieve object.
Creates a new Sieve object in mode 'points'.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. |
limit |
An integer limit, which is included when reached. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals'.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. |
limit |
If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offset.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. |
offset |
An Integer. |
limit |
An integer limit, which is included when reached. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offset.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. |
offset |
An Integer. |
limit |
If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the union of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the union of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the union of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the union of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the intersection of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the intersection of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the intersection of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the intersection of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the symmetrical difference of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the symmetrical difference of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the symmetrical difference of sets integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the symmetrical difference of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the difference of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the difference of sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the difference of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the difference of sets of integers.
... data |
Alternating generators and integer offsets plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Get the global limit of Class Sieve. Set the global limit of Class Sieve to an integer value.
Creates a new Sieve object in mode 'points', generated by the union of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Binary operator for instance method union. Creates a new Sieve object in mode 'points', generated by the union of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the union of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Binary operator for instance method union_i. Creates a new Sieve object in mode 'intervals', generated by the union of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the union of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the union of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the intersection of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Binary operator for instance method sect. Creates a new Sieve object in mode 'points', generated by the intersection of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the intersection of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Binary operator for instance method sect_i. Creates a new Sieve object in mode 'intervals', generated by the intersection of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the intersection of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the intersection of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the symmetrical difference of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Binary operator for instance method symdif. Creates a new Sieve object in mode 'points', generated by the symmetric difference of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the symmetrical difference of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Binary operator for instance method symdif_i. Creates a new Sieve object in mode 'intervals', generated by the symmetric difference of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the symmetrical difference of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the symmetrical difference of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals are collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points', generated by the difference of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Binary operator for instance method dif. Creates a new Sieve object in mode 'points', generated by the difference of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals', generated by the difference of the receiver and sets of integers.
... data |
Generators and an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Binary operator for instance method dif_i. Creates a new Sieve object in mode 'intervals', generated by the difference of the receiver and a generator.
gen |
A generator. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Integer intervals might be collected up to default summation limit of 65536. |
Creates a new Sieve object in mode 'points' with offsets, generated by the difference of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. If no limit is passed, returned integers might go up to default limit 65536. |
Creates a new Sieve object in mode 'intervals' with offsets, generated by the difference of the receiver and sets of integers.
... data |
Alternating integer offsets and generators plus an optional integer limit, wrapped into a Ref, which is included when reached. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce constant intervals. If no limit is passed, integer intervals might be collected up to default summation limit of 65536. |
Plot the Sieve's list.
The Sieve's list size.
Convert the Sieve to mode 'points' and set first point to offset.
Convert the Sieve to mode 'intervals' and set offset to first point.
Shift the Sieve's list by addOffset.
addOffset |
An Integer. |
Binary operator for instance method shift. Shift the Sieve's list by addOffset.
addOffset |
An Integer. |
Shift the Sieve's list to targetOffset.
targetOffset |
An Integer. |
Binary operator for instance method shiftTo. Shift the Sieve's list to targetOffset.
targetOffset |
An Integer. |
Shift the Sieve's list to offset zero.
Returns a new Sieve with same list object.
Returns a new Sieve with copied list object.
Takes over mode and offset from receiver and passes an appropriate SequenceableCollection.
seqCollection |
SequenceableCollection. |
withCheck |
Boolean. Determines if seqCollection is checked according to mode. Defaults to true. |
Apply operator (Symbol of method or Function) to the Sieve's list and pass the result to a new Sieve with copied mode and offset.
operator |
Symbol of method or Function. |
withCheck |
Boolean. Determines if result of the operation is checked according to mode. Defaults to true. |
Equality check. Sieves of different mode are equal iff the lists resulting from conversion are equal.
that |
Object to compare. |
Returns a new Sieve of mode 'points' with Integers greater than or equal lo.
lo |
Integer. |
Binary operator for segmentGreaterEqual.
lo |
Integer. |
Returns a new Sieve of mode 'points' with Integers greater than lo.
lo |
Integer. |
Binary operator for segmentGreater.
lo |
Integer. |
Returns a new Sieve of mode 'points' with Integers less than or equal hi.
hi |
Integer. |
Binary operator for segmentLessEqual.
hi |
Integer. |
Returns a new Sieve of mode 'points' with Integers less than hi.
hi |
Integer. |
Binary operator for segmentLess.
hi |
Integer. |
Returns a new Sieve of mode 'points' with Integers greater than or equal lo and less than or equal hi. This method is more efficient than applying segmentGreaterEqual plus segmentLessEqual.
lo |
Integer. |
hi |
Integer. |
Binary operator for segmentBetweenEqual.
bounds |
Must be an array with integers lo and hi. |
Returns a new Sieve of mode 'points' with Integers greater than lo and less than hi. This method is more efficient than applying segmentGreater plus segmentLess.
lo |
Integer. |
hi |
Integer. |
Binary operator for segmentBetween.
bounds |
Must be an array with integers lo and hi. |
Checks the list of a Sieve for symmetric periods and returns an array [periods, symmetries, completions], where periods is the clumped list of periods, symmetries a corresponding array of Symbols and completions a corresponding array of Booleans, indicating if periods are complete. periods can contains Symbols 'sym', 'asym', 'quasisym' and 'identic'. See Sieves_and_Psieve_patterns: 3b for a characterisation of these types. It is assumed that the receiver has a periodic list, changes between periodic and aperiodic segments are not detected, so also aperiodic prefixes of periodic lists.
Checks the first complete period based on the data returned by checkSymmetricPeriods. It returns an array [characteristicPeriod, offset, oddEven, symmetry], where characteristicPeriod denotes the first complete period, offset the index at which it starts in the receiver's list, oddEven one of the Symbols 'odd' and 'even' and symmetry the symmetry type as in checkSymmetricPeriods.
Plots the characteristic period returned by checkCharacteristicPeriod.
Get the Sieve's list.
Get the Sieve's offset.
Get the Sieve's mode.
For conversion, segmentation and transformation examples see Sieves_and_Psieve_patterns.