2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00
This commit is contained in:
2022-10-16 22:16:00 +03:00
parent 8e17a5b677
commit 6537913b11
14 changed files with 516 additions and 1 deletions

View File

@ -45,6 +45,8 @@ using System.Collections.Generic;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using Esiur.Analysis.Signals;
using Esiur.Analysis.Units;
namespace Test
{
@ -54,6 +56,17 @@ namespace Test
static async Task Main(string[] args)
{
var outage = Capacity.ComputeOutage(20000000, new Capacity.CSI[]
{
new Capacity.CSI(PowerUnit.FromDb(20), 0.1),
new Capacity.CSI(PowerUnit.FromDb(15), 0.15),
new Capacity.CSI(PowerUnit.FromDb(10), 0.25),
new Capacity.CSI(PowerUnit.FromDb(5), 0.25),
new Capacity.CSI(PowerUnit.FromDb(0), 0.15),
new Capacity.CSI(PowerUnit.FromDb(-5), 0.1),
});
// Create stores to keep objects.
var system = await Warehouse.Put("sys", new MemoryStore());
var server = await Warehouse.Put("sys/server", new DistributedServer());

View File

@ -6,6 +6,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Esiur.Analysis\Esiur.Analysis.csproj" />
<ProjectReference Include="..\Esiur\Esiur.csproj" OutputItemType="Analyzer" />
</ItemGroup>