JuliaApproximation / JuliaApproximation/DomainSets.jl

`UnitSimplex`

Open
#102 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0.6
Dominant language
Julia
Stars
79
Forks
12
Avg merge
6d 22h
Merged PRs (30d)
2

Description

Instead of checking that the sum is one, UnitSimplex seems to check that it's at most one:

julia> [0.3,0.6] ∈ UnitSimplex(2)
true

julia> [0.3,0.7] ∈ UnitSimplex(2)
true

julia> [0.3,0.8] ∈ UnitSimplex(2)
false

It also doesn't seem to check the length (though UnitSimplex(Val(2)) does check this):

julia> [0.3,0.4,0.2] ∈ UnitSimplex(2)
true

julia> [0.3,0.4,0.3] ∈ UnitSimplex(2)
true

julia> [0.3,0.4,0.4] ∈ UnitSimplex(2)
false

EDIT: I just realized the first of these is intentional. This is unusual, maybe a different use of "unit simplex" across fields? In statistics we use this for the support of Dirichlet distributions.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the UnitSimplex membership behavior and reproduce the Julia REPL examples from the issue. Compare the general UnitSimplex path with UnitSimplex(Val(2)), which the issue says checks length. Done requires a maintainer decision on the intended sum and length semantics, followed by matching behavior and regression tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.