Download presentation

Presentation is loading. Please wait.

Published byArianna Wood Modified over 3 years ago

1
Modeling Quantities Goal –to establish a consistent method for representing physical quantities Why? –easier for newcomers to understand –common software solution for handling common problems units transformations quantity combinations (math, units propagation, error prop….) –establish a base data model component that can be used to build up more complex objects.

2
Modeling Quantities 3 components: Value Error Unit Error is abstract: 2 subtypes (substitutes): Sigma ErrorRange –confidence attribute Unit –prefix attribute

3
Modeling Quantities Specific Quantities –substitutable for Quantity –restrict the unit Flux: Jy Length: m, pc, lt-yr Frequency: Hz, cm, eV

4
44.2 0.1 m/s 4.5 pc 18.4 4.1 2.4 Jy 21 m

5
44.2 0.1 m/s 4.5 pc 18.4 4.1 2.4 Jy 21 m Alternatives: 21 21 cm

6
Modeling Quantities: Challenges Quantity transformations –unit conversions * metric scaling * base unit (e.g. m Hz eV) –parsing from human readable form 5 Jy is more compact and convenient but harder to parse Comparisons & Processing Useful Functions: boolean near(q1, q2, tolerance) boolean withinError(q1, q2) boolean lessThan(q1, q2) boolean greaterThan(q1, q2) Quantity toQuantity(string) e.g. toQuantity(5 Jy) enables: greaterThan(Flux, 5 Jy)

Similar presentations

OK

Chapter 3 Define terms Understand use of supertype/subtype relationships Understand use of specialization and generalization techniques Specify.

Chapter 3 Define terms Understand use of supertype/subtype relationships Understand use of specialization and generalization techniques Specify.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google