Project

General

Profile

feature request #4499

Implement fields for typical StatisticalMeasurementValues

Added by Andreas Müller about 6 years ago. Updated 5 months ago.

Status:
New
Priority:
Priority12
Category:
cdm
Target version:
Start date:
11/21/2014
Due date:
% Done:

0%

Severity:
normal
Tags:

Description

To simplify the handling of quantitative data we may want to add concrete fields for min, max, average, sampleSize, typicalLowerBoundary, typicalUpperBoundary, variance, standardDeviation.

Maybe we also want singleValue (instead of average and sampleSize = 1

Only modifiers will not be available anymore. Are they needed? If yes, do we need them for each field or for

see also #2334


Related issues

Related to Edit - feature request #8978: Implement measurement values as BigDecimal Closed 04/25/2020

History

#1 Updated by Andreas Müller about 6 years ago

One problem that arises is the correct use of numbers in Java, Hibernate + DB. For correct rounding etc. we should better use BigDecimal rather than Double.

However, BigDecimal is stored as Numeric(PRECISION,SCALE) with a fixed SCALE value. To allow different Scaling per record we may want to implement a BigDecimalUserType. This can be found at https://bitbucket.org/ratkins/bigdecimalusertype/.

http://stackoverflow.com/questions/6544232/how-do-i-map-a-bigdecimal-in-hibernate-so-i-get-back-the-same-scale-i-put-in

Alternatively we may use UserType with String representation !! But this may not allow Database computations on values.

https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html

#2 Updated by Andreas Müller almost 6 years ago

first implementations but commented r22246

#3 Updated by Andreas Müller almost 6 years ago

  • Target version changed from CDM UML 3.5 to CDM UML - Next major release

Move all unassigned modelling tickets to next major release

#4 Updated by Andreas Müller almost 6 years ago

  • Target version changed from CDM UML - Next major release to CDM UML 3.5

#5 Updated by Andreas Müller over 5 years ago

  • Target version deleted (CDM UML 3.6)

#6 Updated by Andreas Müller over 4 years ago

  • Target version changed from CDM UML 4.0 to CDM UML 4.1

#7 Updated by Andreas Müller over 4 years ago

  • Priority changed from Highest to Priority13

#8 Updated by Andreas Müller almost 4 years ago

  • Target version changed from CDM UML 4.1 to CDM UML 4.7

#9 Updated by Andreas Müller over 3 years ago

  • Target version changed from CDM UML 4.7 to CDM UML 5.0

#10 Updated by Andreas Müller over 2 years ago

  • Target version changed from CDM UML 5.0 to CDM UML 5.5

#11 Updated by Andreas Müller almost 2 years ago

  • Priority changed from Priority13 to Priority12

#12 Updated by Andreas Müller over 1 year ago

  • Target version changed from CDM UML 5.5 to CDM UML 5.15

#14 Updated by Andreas Müller 11 months ago

  • Tags set to additivity
  • Description updated (diff)

#16 Updated by Andreas Müller 7 months ago

#17 Updated by Andreas Müller 7 months ago

  • Private changed from Yes to No

#18 Updated by Andreas Müller 5 months ago

  • Target version changed from CDM UML 5.15 to CDM UML 5.18

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)