Opened 11 years ago

Closed 7 years ago

#758 closed enhancement (fixed)

Evaluate the use of fixed number of decimal places in numeric representations

Reported by: Piero Campalani Owned by: Vlad Merticariu
Priority: major Milestone: Future
Component: petascope Version: development
Keywords: significant figures decimal digits Cc: Dimitar Misev, Peter Baumann, Vlad Merticariu
Complexity: Medium

Description

While the current policy on numerical representations (both coordinates and data values) is to reach the highest precision possible, it is common practice to deliver data with a fixed number of either decimal places or significant figures.

As far as I understand, a fixed representation is useful when interpreting the data uncertainty, and it can help a software implementation choosing the best data type to use (float, double, etc) to store values associated to a given data component.

Regarding data values, this feature should be embedded in the encoding phase of rasdaman directly (via a parameter which shall be taken from petascopedb::ps_quantity.significant_figures).

Regarding coordinates (both absolute and relative), a deeper inspection should be done. Maybe using fixed 15 decimal places like GDAL does.

Change History (5)

comment:1 by Peter Baumann, 11 years ago

sounds like an interesting idea to deliberate in the future. Tricky numeric effects are luring, so serious investigations will be required for sure.

comment:2 by Dimitar Misev, 9 years ago

Cc: Vlad Merticariu added; abeccati removed
Milestone: 9.19.2

comment:3 by Dimitar Misev, 9 years ago

Owner: changed from Piero Campalani to Vlad Merticariu
Status: newassigned

comment:4 by Dimitar Misev, 8 years ago

Milestone: 9.2Future

comment:5 by Bang Pham Huu, 7 years ago

Resolution: fixed
Status: assignedclosed

It has been used BigDecimal in Petascope for a long time, so can be closed here.

Note: See TracTickets for help on using tickets.