-
Notifications
You must be signed in to change notification settings - Fork 0
Helpers
isachpaz edited this page Feb 22, 2020
·
6 revisions
Getting a range of PhysicalDose. Let's say we need physical dose from 10.0 Gy to 100.0 Gy with a step of 0.1 Gy:
var doseSamples = RangeHelper<PhysicalDoseValue>.Range(start: 10.0.Gy(), stop: 100.0.Gy(), step: 0.1.Gy(), bIncludeLastValue: true);
To print the values:
Debug.WriteLine(String.Join("\n", doseSamples));
Another way for physical dose is:
var doseSamples = DoseHelper.PhysicalDoseRange(start: 1.1, stop: 10.2, step: 0.5, bIncludeLastValue: true,
unit: PhysicalDoseValue.DoseUnit.CGY);