Sha256: 856df432c4c0ea250fb7e1d42b35891a45bcb5e40742e0d58c40d2ea30a0bc8f

Contents?: true

Size: 282 Bytes

Versions: 29

Compression:

Stored size: 282 Bytes

Contents

module Dither
  UnboundParam = Struct.new(:i) do
    def <=>(param)
      return -1 unless param.unbound?
      i <=> param.i
    end

    def unbound?
      true
    end

    def create_params(j)
      (0...j).map { |a| Param.new(i, a) }
    end
  end # UnboundParam
end # Dither

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dither-0.1.5 lib/dither/unbound_param.rb
dither-0.1.5-java lib/dither/unbound_param.rb
dither-0.1.4-java lib/dither/unbound_param.rb
dither-0.1.4 lib/dither/unbound_param.rb
dither-0.1.3-java lib/dither/unbound_param.rb
dither-0.1.3 lib/dither/unbound_param.rb
dither-0.1.2-java lib/dither/unbound_param.rb
dither-0.1.2 lib/dither/unbound_param.rb
dither-0.1.1 lib/dither/unbound_param.rb
dither-0.1.1-java lib/dither/unbound_param.rb
dither-0.0.15 lib/dither/unbound_param.rb
dither-0.0.15-java lib/dither/unbound_param.rb
dither-0.0.14 lib/dither/unbound_param.rb
dither-0.0.14-java lib/dither/unbound_param.rb
dither-0.0.13-java lib/dither/unbound_param.rb
dither-0.0.13 lib/dither/unbound_param.rb
dither-0.0.12-java lib/dither/unbound_param.rb
dither-0.0.12 lib/dither/unbound_param.rb
dither-0.0.11-java lib/dither/unbound_param.rb
dither-0.0.11 lib/dither/unbound_param.rb