mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
Analysis
This commit is contained in:
@ -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());
|
||||
|
@ -6,6 +6,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Esiur.Analysis\Esiur.Analysis.csproj" />
|
||||
<ProjectReference Include="..\Esiur\Esiur.csproj" OutputItemType="Analyzer" />
|
||||
</ItemGroup>
|
||||
|
||||
|
Reference in New Issue
Block a user