Units can have non-integer Dimension
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- backend-api-design
Research direction
Start by reviewing the Unit.getBaseDimensions(), Dimension.getBaseDimensions(), Dimension.pow(), and Unit.pow() API contracts. The issue establishes the need for non-integer dimensions but does not choose a representation or specify compatibility requirements, so clarify that design before identifying affected implementations and tests. Done should include a defined API that supports the stated spectral-density use case.
Written by the indexing model from the issue text.
Description
Actual physical units can have dimensions that are non-integer (most of the time square-root). This often happens with spectral densities (square root of Hertz), but also in many other domains.
This cannot be defined with the current Unit API because (1) Unit.getBaseDimensions() returns a Map<Unit, Integer>; (2) Dimsension.getBaseDimensions() returns a Map<Unit,Integer>; (3) Dimension.pow() and Unit.pow() accept only int as argument.
- Dominant language
- Java
- Stars
- 195
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from unitsofmeasurement/unit-api
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
unitsofmeasurement/unit-api#261 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
unitsofmeasurement/unit-api#260 · 1 comment ·
-
deferred design enhancement jdk
Difficulty 5/5 Over a week Newbie friendliness 20/100
unitsofmeasurement/unit-api#215 ·
-
deferred question
Difficulty 4/5 3-5 days Newbie friendliness 35/100
unitsofmeasurement/unit-api#201 · 4 comments ·
-
Classpath Discovery Opendeferred enhancement jdk ready task
Difficulty 5/5 Over a week Newbie friendliness 25/100
unitsofmeasurement/unit-api#90 · 1 comment ·
All issues in unitsofmeasurement/unit-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100