File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
com.unity.perception/Runtime/Randomization/Scenarios/Serialization Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ static SamplerOptions SerializeSampler(ISampler sampler)
136136 min = normalSampler . range . minimum ,
137137 max = normalSampler . range . maximum ,
138138 mean = normalSampler . mean ,
139- standardDeviation = normalSampler . standardDeviation
139+ stddev = normalSampler . standardDeviation
140140 } ;
141141 else
142142 throw new ArgumentException ( $ "Invalid sampler type ({ sampler . GetType ( ) } )") ;
@@ -245,7 +245,7 @@ static ISampler DeserializeSampler(ISamplerOption samplerOption)
245245 maximum = ( float ) normalSampler . max
246246 } ,
247247 mean = ( float ) normalSampler . mean ,
248- standardDeviation = ( float ) normalSampler . standardDeviation
248+ standardDeviation = ( float ) normalSampler . stddev
249249 } ;
250250 throw new ArgumentException ( $ "Cannot deserialize unsupported sampler type { samplerOption . GetType ( ) } ") ;
251251 }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class NormalSampler : ISamplerOption
5959 public double min ;
6060 public double max ;
6161 public double mean ;
62- public double standardDeviation ;
62+ public double stddev ;
6363 }
6464
6565 class ConstantSampler : ISamplerOption
You can’t perform that action at this time.
0 commit comments