расчет шага детектора.

This commit is contained in:
ngfrolov 2022-06-27 14:49:04 +05:00
parent d45145b8a5
commit ec121dcecb

View File

@ -173,7 +173,14 @@ namespace AsbCloudInfrastructure.Services.DetectOperations
if (!isDetected)
{
startDate = startDate.AddSeconds(0.95 * take);
var i = skip - minFragmentLength;
i = i > data.Length
? data.Length - minStepLength
: i;
i = i < minFragmentLength
? minFragmentLength
: i;
startDate = data[i].DateTime;
}
}