浏览代码

changed normal sampler standard deviation json key to "stddev"

/main
Mohsen Kamalzadeh 4 年前
当前提交
f57c92ef
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 4
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs
  2. 2
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/SerializationStructures.cs

4
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs


min = normalSampler.range.minimum,
max = normalSampler.range.maximum,
mean = normalSampler.mean,
standardDeviation = normalSampler.standardDeviation
stddev = normalSampler.standardDeviation
};
else
throw new ArgumentException($"Invalid sampler type ({sampler.GetType()})");

maximum = (float)normalSampler.max
},
mean = (float)normalSampler.mean,
standardDeviation = (float)normalSampler.standardDeviation
standardDeviation = (float)normalSampler.stddev
};
throw new ArgumentException($"Cannot deserialize unsupported sampler type {samplerOption.GetType()}");
}

2
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/SerializationStructures.cs


public double min;
public double max;
public double mean;
public double standardDeviation;
public double stddev;
}
class ConstantSampler : ISamplerOption

正在加载...
取消
保存