浏览代码

bugfix

/main
Mohsen Kamalzadeh 4 年前
当前提交
a71f3498
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.perception/Runtime/Randomization/Samplers/SamplerUtility.cs

4
com.unity.perception/Runtime/Randomization/Samplers/SamplerUtility.cs


var valueDifference = integratedCurve[i + 1] - integratedCurve[i];
var upperWeight = (scaledSample - integratedCurve[i]) / valueDifference;
var lowerWeight = 1 - upperWeight;
var matchingIndex = ((i * lowerWeight) + (i + 1 * upperWeight)) / 2;
var matchingIndex = i * lowerWeight + (i + 1) * upperWeight;
Debug.LogError("Could not find matching timestamp");
Debug.LogError("Could not find matching timestamp.");
return -1;
}

正在加载...
取消
保存