Vector Quantity Support #61
Comments
Thanks for the suggestion. It is not so likely the API (as Another implementation Apache SIS has a https://github.com/apache/sis/blob/trunk/core/sis-utility/src/main/java/org/apache/sis/measure/Scalar.java. I could not find a |
@desruisseaux, @dautelle What do you think of the idea? I know concrete use cases for a "Compound Unit" (as described, the most compelling ones are heights like |
I think that "Compount Unit" and vectors are different things. I think (please correct me if I'm wrong) fpoolev was talking more about vector in "vector algebra" sense. For example an ocean current vector (3, 4) m/s is a current having a East/West component flowing at 3 m/s and a North/South component flowing at 4 m/s; the total current magnitude is 5 m/s (i.e. √(3² + 4²)). Such vectors are indeed very useful, but they are not alone. After vector, we may want to do matrix. Then after matrix, we may want to do tensor. We may also want to do remote sensing images (which may be seen as matrix or tensor), we could also attach unit to ranges or fractions, etc. So how to decide where to stop (e.g. do vector but not tensor)? |
Yes, they are two different things. I created unitsofmeasurement/unit-api#45 to consider a Do you think for an implementation similar to http://jscience.org/api/javax/measure/VectorMeasure.html was worth considering for either uom-se or the RI? |
I think @desruisseaux described what I had in mind. I am looking for a representation for 3D vectors like accelerometer and gyroscope where the unit is common across dimensions. If you were interested, you may be able to kill two birds with one stone - implement matrix and then a vector is simply a type of matrix. |
I think for Compound units it makes sense (very useful for formatting, e.g. hour/min/sec). As for VectorMeasure, this would be openning the Pandora box! of |
Thanks everyone for the assessment. Compound units also to bein sync with e.g. JSR 310 for Java SE are on the roadmap for new API releases: https://github.com/unitsofmeasurement/unit-api/issues |
Based on the input especially by fellow Spec Lead @dautelle I'm closing this. And we'll leave advanced features like Matrix or Vector up to (Open Source or Closed, Commercial) implementations and extensions. |
Are there plans to create multidimensional quantities? I'm looking for a replacement for JScience VectorMeasure.
http://jscience.org/api/javax/measure/VectorMeasure.html
Thanks!
The text was updated successfully, but these errors were encountered: