VOOZH about

URL: https://www.nuget.org/packages/Pragmastat/

⇱ NuGet Gallery | Pragmastat 12.1.0




👁 Image
Pragmastat 12.1.0

Prefix Reserved
dotnet add package Pragmastat --version 12.1.0
 
 
NuGet\Install-Package Pragmastat -Version 12.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pragmastat" Version="12.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pragmastat" Version="12.1.0" />
 
Directory.Packages.props
<PackageReference Include="Pragmastat" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pragmastat --version 12.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pragmastat, 12.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Pragmastat@12.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pragmastat&version=12.1.0
 
Install as a Cake Addin
#tool nuget:?package=Pragmastat&version=12.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

C#

Install from NuGet via .NET CLI:

dotnet add package Pragmastat --version 12.1.0

Install from NuGet via Package Manager Console:

NuGet\Install-Package Pragmastat -Version 12.1.0

Source code: https://github.com/AndreyAkinshin/pragmastat/tree/v12.1.0/cs

Pragmastat on NuGet: https://www.nuget.org/packages/Pragmastat/

Demo

using static System.Console;
using Pragmastat.Distributions;
using Pragmastat.Randomization;

namespace Pragmastat.Demo;

class Program
{
 static void Main()
 {
 // --- One-Sample ---

 var x = new Sample(Enumerable.Range(1, 200).Select(i => (double)i).ToArray());

 WriteLine(x.Center()); // 100.5
 WriteLine(x.CenterBounds()); // [86;115]
 WriteLine(x.Spread()); // 59
 WriteLine(x.SpreadBounds(1e-3, "demo")); // [44;87]

 // --- Two-Sample ---

 x = new Sample(Enumerable.Range(1, 200).Select(i => (double)i).ToArray());
 var y = new Sample(Enumerable.Range(101, 200).Select(i => (double)i).ToArray());

 WriteLine(x.Shift(y)); // -100
 WriteLine(x.ShiftBounds(y)); // [-120;-80]
 WriteLine(x.Ratio(y)); // 0.5008354224706334
 WriteLine(x.RatioBounds(y)); // [0.4066666666666668;0.5958333333333332]
 WriteLine(x.Disparity(y)); // -1.694915254237288
 WriteLine(x.DisparityBounds(y, 1e-3, "demo")); // [-3.1025641025641026;-0.8494623655913979]

 // --- Randomization ---

 var rng = new Rng("demo-uniform");
 WriteLine(rng.UniformDouble()); // 0.2640554428629759
 WriteLine(rng.UniformDouble()); // 0.9348534835582796

 rng = new Rng("demo-uniform-int");
 WriteLine(rng.UniformInt32(0, 100)); // 41

 rng = new Rng("demo-sample");
 WriteLine(string.Join(", ", rng.Sample([0.0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 3))); // 3, 8, 9

 rng = new Rng("demo-resample");
 WriteLine(string.Join(", ", rng.Resample([1.0, 2, 3, 4, 5], 7))); // 3, 1, 3, 2, 4, 1, 2

 rng = new Rng("demo-shuffle");
 WriteLine(string.Join(", ", rng.Shuffle([1.0, 2, 3, 4, 5]))); // 4, 2, 3, 5, 1

 // --- Distributions ---

 rng = new Rng("demo-dist-additive");
 WriteLine(new Additive(0, 1).Sample(rng)); // 0.17410448679568188

 rng = new Rng("demo-dist-multiplic");
 WriteLine(new Multiplic(0, 1).Sample(rng)); // 1.1273244602673853

 rng = new Rng("demo-dist-exp");
 WriteLine(new Exp(1).Sample(rng)); // 0.6589065267276553

 rng = new Rng("demo-dist-power");
 WriteLine(new Power(1, 2).Sample(rng)); // 1.023677535537084

 rng = new Rng("demo-dist-uniform");
 WriteLine(new Uniform(0, 10).Sample(rng)); // 6.54043657816832
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pragmastat:

Package Downloads
Perfolizer

Performance analysis toolkit

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Pragmastat:

Repository Stars
AndreyAkinshin/perfolizer
Performance analysis toolkit
JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
Version Downloads Last Updated
12.1.0 3,987 4/9/2026
12.0.1 2,133 3/10/2026
12.0.0 11,778 3/8/2026
11.1.1 751 3/3/2026
11.1.0 1,143 3/2/2026
11.0.1 197 3/2/2026
11.0.0 197 3/2/2026
10.0.6 925 2/22/2026
10.0.5 193 2/21/2026
10.0.4 188 2/20/2026
10.0.3 185 2/20/2026
10.0.2 188 2/19/2026
10.0.1 177 2/19/2026
10.0.0 2,074 2/19/2026
9.0.0 527 2/16/2026
8.0.0 21,419 2/12/2026
7.0.1 214 2/11/2026
7.0.0 882 2/9/2026
6.0.1 1,248 2/3/2026
6.0.0 172 2/3/2026
Loading failed