mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
flow
This commit is contained in:
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
@ -19,5 +20,13 @@ namespace Test
|
||||
|
||||
[Export] public string HelloParent() => "Hi from Parent";
|
||||
|
||||
[Export]
|
||||
[Annotation("This function computes the standard deviation of a list")]
|
||||
public double StDev(double[] values)
|
||||
{
|
||||
double avg = values.Average();
|
||||
return Math.Sqrt(values.Average(v => Math.Pow(v - avg, 2)));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user