Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit c716bec6 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix: acc_pos > 0.125

parent e70109ac
No related branches found
No related tags found
No related merge requests found
......@@ -132,20 +132,18 @@ namespace TUGraz.VectoCore.OutputData
public static MeterPerSquareSecond AccelerationsPositive(this ModalDataContainer data)
{
return
data.GetValues<MeterPerSquareSecond>(ModalResultField.acc)
.Where(x => x < -0.125)
.DefaultIfEmpty(0.SI<MeterPerSquareSecond>())
.Average();
return data.GetValues<MeterPerSquareSecond>(ModalResultField.acc)
.Where(x => x > 0.125)
.DefaultIfEmpty(0.SI<MeterPerSquareSecond>())
.Average();
}
public static MeterPerSquareSecond AccelerationsNegative(this ModalDataContainer data)
{
return
data.GetValues<MeterPerSquareSecond>(ModalResultField.acc)
.Where(x => x < -0.125)
.DefaultIfEmpty(0.SI<MeterPerSquareSecond>())
.Average();
return data.GetValues<MeterPerSquareSecond>(ModalResultField.acc)
.Where(x => x < -0.125)
.DefaultIfEmpty(0.SI<MeterPerSquareSecond>())
.Average();
}
public static Scalar AccelerationTimeShare(this ModalDataContainer data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment