├── java
└── toolgood.algorithm
│ ├── .gitignore
│ ├── build.bat
│ ├── build2.exe
│ ├── src
│ ├── main
│ │ └── java
│ │ │ └── toolgood
│ │ │ └── algorithm
│ │ │ ├── litJson
│ │ │ ├── FsmContext.java
│ │ │ ├── JsonType.java
│ │ │ ├── JsonToken.java
│ │ │ ├── IJsonWrapper.java
│ │ │ ├── JsonException.java
│ │ │ ├── ParserToken.java
│ │ │ └── JsonMapper.java
│ │ │ ├── mathNet
│ │ │ ├── RootFinding
│ │ │ │ └── RootNumber.java
│ │ │ ├── Statistics
│ │ │ │ ├── QuantileDefinition.java
│ │ │ │ ├── SortedArrayStatistics.java
│ │ │ │ └── Statistics.java
│ │ │ ├── Constants.java
│ │ │ ├── Distributions
│ │ │ │ ├── LogNormal.java
│ │ │ │ ├── FisherSnedecor.java
│ │ │ │ ├── Normal.java
│ │ │ │ ├── Hypergeometric.java
│ │ │ │ ├── Exponential.java
│ │ │ │ ├── StudentT.java
│ │ │ │ ├── Poisson.java
│ │ │ │ ├── NegativeBinomial.java
│ │ │ │ └── Beta.java
│ │ │ └── Evaluate.java
│ │ │ ├── internals
│ │ │ ├── MyParameter.java
│ │ │ ├── MyFunction.java
│ │ │ ├── AntlrErrorListener.java
│ │ │ ├── AntlrLookupEngine.java
│ │ │ └── AntlrCharStream.java
│ │ │ ├── enums
│ │ │ ├── OperandType.java
│ │ │ ├── ConditionTreeType.java
│ │ │ ├── NumberUnitType.java
│ │ │ ├── MassUnitType.java
│ │ │ ├── DistanceUnitType.java
│ │ │ ├── AreaUnitType.java
│ │ │ └── VolumeUnitType.java
│ │ │ ├── unitConversion
│ │ │ ├── UnitNotSupportedException.java
│ │ │ ├── BaseUnitConverter.java
│ │ │ ├── UnitFactorSynonyms.java
│ │ │ ├── UnitFactors.java
│ │ │ ├── MassConverter.java
│ │ │ └── DistanceConverter.java
│ │ │ └── DiyNameInfo.java
│ └── test
│ │ └── java
│ │ └── toolgood
│ │ └── algorithm
│ │ ├── DemoApplication.java
│ │ └── Tests
│ │ ├── Cylinder.java
│ │ └── IssuesTest.java
│ └── .project
├── 支撑压力指标
├── 0.png
├── 1.png
├── 2.png
├── 3.png
├── 4.png
└── readme.md
├── g4
├── math.g4.java.old
├── _run_math_cs.bat
├── _run_math_java.bat
└── _run_math_js.bat
├── HtmlEditor
├── README.md
├── ace
│ ├── mode-text.js
│ ├── ext-error_marker.js
│ ├── ext-linking.js
│ ├── ext-statusbar.js
│ ├── ext-spellcheck.js
│ ├── ext-themelist.js
│ └── ext-hardwrap.js
├── ace-ext
│ └── mirror.js
└── index.html
├── csharp
├── ToolGood.Algorithm
│ ├── ToolGood.Algorithm.snk
│ ├── LitJson
│ │ ├── FsmContext.cs
│ │ ├── JsonType.cs
│ │ ├── JsonException.cs
│ │ ├── IJsonWrapper.cs
│ │ ├── ParserToken.cs
│ │ └── JsonMapper.cs
│ ├── UnitConversion
│ │ ├── UnitNotSupportedException.cs
│ │ ├── UnitFactors.cs
│ │ ├── BaseUnitConverter.cs
│ │ ├── DistanceConverter.cs
│ │ ├── MassConverter.cs
│ │ ├── UnitFactorSynonyms.cs
│ │ ├── AreaConverter.cs
│ │ └── VolumeConverter.cs
│ ├── Enums
│ │ ├── MassUnitType.cs
│ │ ├── NumberUnitType.cs
│ │ ├── ConditionTreeType.cs
│ │ ├── DistanceUnitType.cs
│ │ ├── AreaUnitType.cs
│ │ ├── VolumeUnitType.cs
│ │ └── OperandType.cs
│ ├── MathNet
│ │ ├── Statistics
│ │ │ ├── QuantileDefinition.cs
│ │ │ ├── Statistics.cs
│ │ │ ├── SortedArrayStatistics.cs
│ │ │ └── Factorial.cs
│ │ ├── SpecialFunctions
│ │ │ ├── Stability.cs
│ │ │ └── Evaluate.cs
│ │ ├── Distributions
│ │ │ ├── FisherSnedecor.cs
│ │ │ ├── Normal.cs
│ │ │ ├── LogNormal.cs
│ │ │ ├── Hypergeometric.cs
│ │ │ ├── Beta.cs
│ │ │ ├── StudentT.cs
│ │ │ ├── Exponential.cs
│ │ │ └── Poisson.cs
│ │ ├── Constants.cs
│ │ └── ExcelFunctions.ext.cs
│ ├── Internals
│ │ └── AntlrErrorListener.cs
│ └── DiyNameInfo.cs
├── ToolGood.Algorithm.WebTest
│ ├── wwwroot
│ │ ├── favicon.ico
│ │ ├── _framework
│ │ │ ├── System.wasm
│ │ │ ├── System.IO.wasm
│ │ │ ├── icudt_CJK.dat
│ │ │ ├── mscorlib.wasm
│ │ │ ├── System.Core.wasm
│ │ │ ├── System.Data.wasm
│ │ │ ├── System.Linq.wasm
│ │ │ ├── System.Net.wasm
│ │ │ ├── System.Web.wasm
│ │ │ ├── System.Xml.wasm
│ │ │ ├── WindowsBase.wasm
│ │ │ ├── icudt_EFIGS.dat
│ │ │ ├── icudt_no_CJK.dat
│ │ │ ├── netstandard.wasm
│ │ │ ├── System.Buffers.wasm
│ │ │ ├── System.Console.wasm
│ │ │ ├── System.Drawing.wasm
│ │ │ ├── System.Memory.wasm
│ │ │ ├── System.Runtime.wasm
│ │ │ ├── System.Windows.wasm
│ │ │ ├── dotnet.native.wasm
│ │ │ ├── Microsoft.CSharp.wasm
│ │ │ ├── System.AppContext.wasm
│ │ │ ├── System.IO.Pipes.wasm
│ │ │ ├── System.Net.Http.wasm
│ │ │ ├── System.Net.Mail.wasm
│ │ │ ├── System.Net.Ping.wasm
│ │ │ ├── System.Net.Quic.wasm
│ │ │ ├── System.Numerics.wasm
│ │ │ ├── System.Reflection.wasm
│ │ │ ├── System.Security.wasm
│ │ │ ├── System.Text.Json.wasm
│ │ │ ├── System.Threading.wasm
│ │ │ ├── System.ValueTuple.wasm
│ │ │ ├── System.Xml.Linq.wasm
│ │ │ ├── System.Xml.XPath.wasm
│ │ │ ├── Microsoft.JSInterop.wasm
│ │ │ ├── System.Collections.wasm
│ │ │ ├── System.Data.Common.wasm
│ │ │ ├── System.Formats.Asn1.wasm
│ │ │ ├── System.Formats.Tar.wasm
│ │ │ ├── System.IO.Pipelines.wasm
│ │ │ ├── System.Net.Requests.wasm
│ │ │ ├── System.Net.Security.wasm
│ │ │ ├── System.Net.Sockets.wasm
│ │ │ ├── System.Net.WebProxy.wasm
│ │ │ ├── System.ObjectModel.wasm
│ │ │ ├── System.Private.Uri.wasm
│ │ │ ├── System.Private.Xml.wasm
│ │ │ ├── System.Transactions.wasm
│ │ │ ├── ToolGood.Algorithm.wasm
│ │ │ ├── Microsoft.VisualBasic.wasm
│ │ │ ├── System.ComponentModel.wasm
│ │ │ ├── System.Configuration.wasm
│ │ │ ├── System.Dynamic.Runtime.wasm
│ │ │ ├── System.Globalization.wasm
│ │ │ ├── System.IO.Compression.wasm
│ │ │ ├── System.IO.FileSystem.wasm
│ │ │ ├── System.Linq.Parallel.wasm
│ │ │ ├── System.Linq.Queryable.wasm
│ │ │ ├── System.Net.Http.Json.wasm
│ │ │ ├── System.Net.Primitives.wasm
│ │ │ ├── System.Net.WebClient.wasm
│ │ │ ├── System.Net.WebSockets.wasm
│ │ │ ├── System.Private.CoreLib.wasm
│ │ │ ├── System.Reflection.Emit.wasm
│ │ │ ├── System.Runtime.Handles.wasm
│ │ │ ├── System.Runtime.Loader.wasm
│ │ │ ├── System.Security.Claims.wasm
│ │ │ ├── System.ServiceProcess.wasm
│ │ │ ├── System.Text.Encoding.wasm
│ │ │ ├── System.Threading.Tasks.wasm
│ │ │ ├── System.Threading.Timer.wasm
│ │ │ ├── System.Web.HttpUtility.wasm
│ │ │ ├── System.Xml.XDocument.wasm
│ │ │ ├── System.Xml.XmlDocument.wasm
│ │ │ ├── Antlr4.Runtime.Standard.wasm
│ │ │ ├── Microsoft.Win32.Registry.wasm
│ │ │ ├── System.Diagnostics.Debug.wasm
│ │ │ ├── System.Diagnostics.Tools.wasm
│ │ │ ├── System.Linq.Expressions.wasm
│ │ │ ├── System.Net.HttpListener.wasm
│ │ │ ├── System.Net.ServicePoint.wasm
│ │ │ ├── System.Numerics.Vectors.wasm
│ │ │ ├── System.Private.Xml.Linq.wasm
│ │ │ ├── System.Resources.Reader.wasm
│ │ │ ├── System.Resources.Writer.wasm
│ │ │ ├── System.Runtime.Numerics.wasm
│ │ │ ├── System.ServiceModel.Web.wasm
│ │ │ ├── System.Threading.Thread.wasm
│ │ │ ├── System.Xml.ReaderWriter.wasm
│ │ │ ├── System.Xml.Serialization.wasm
│ │ │ ├── System.Xml.XmlSerializer.wasm
│ │ │ ├── Microsoft.VisualBasic.Core.wasm
│ │ │ ├── Microsoft.Win32.Primitives.wasm
│ │ │ ├── System.Diagnostics.Process.wasm
│ │ │ ├── System.Diagnostics.Tracing.wasm
│ │ │ ├── System.Drawing.Primitives.wasm
│ │ │ ├── System.IO.IsolatedStorage.wasm
│ │ │ ├── System.IO.MemoryMappedFiles.wasm
│ │ │ ├── System.Net.NameResolution.wasm
│ │ │ ├── System.Reflection.Metadata.wasm
│ │ │ ├── System.Runtime.Extensions.wasm
│ │ │ ├── System.Runtime.Intrinsics.wasm
│ │ │ ├── System.Security.Principal.wasm
│ │ │ ├── System.Text.Encodings.Web.wasm
│ │ │ ├── System.Threading.Channels.wasm
│ │ │ ├── System.Threading.Overlapped.wasm
│ │ │ ├── System.Threading.ThreadPool.wasm
│ │ │ ├── System.Transactions.Local.wasm
│ │ │ ├── System.Xml.XPath.XDocument.wasm
│ │ │ ├── Microsoft.AspNetCore.Metadata.wasm
│ │ │ ├── Microsoft.Extensions.Logging.wasm
│ │ │ ├── Microsoft.Extensions.Options.wasm
│ │ │ ├── System.Collections.Concurrent.wasm
│ │ │ ├── System.Collections.Immutable.wasm
│ │ │ ├── System.Collections.NonGeneric.wasm
│ │ │ ├── System.Data.DataSetExtensions.wasm
│ │ │ ├── System.Diagnostics.Contracts.wasm
│ │ │ ├── System.Diagnostics.StackTrace.wasm
│ │ │ ├── System.IO.Compression.Brotli.wasm
│ │ │ ├── System.IO.Compression.ZipFile.wasm
│ │ │ ├── System.IO.FileSystem.Watcher.wasm
│ │ │ ├── System.IO.Pipes.AccessControl.wasm
│ │ │ ├── System.Net.NetworkInformation.wasm
│ │ │ ├── System.Net.WebSockets.Client.wasm
│ │ │ ├── System.Reflection.Extensions.wasm
│ │ │ ├── System.Reflection.Primitives.wasm
│ │ │ ├── System.Runtime.Serialization.wasm
│ │ │ ├── System.Security.AccessControl.wasm
│ │ │ ├── System.Security.Cryptography.wasm
│ │ │ ├── System.Security.SecureString.wasm
│ │ │ ├── Microsoft.AspNetCore.Components.wasm
│ │ │ ├── Microsoft.Extensions.Primitives.wasm
│ │ │ ├── Microsoft.JSInterop.WebAssembly.wasm
│ │ │ ├── System.Collections.Specialized.wasm
│ │ │ ├── System.ComponentModel.Primitives.wasm
│ │ │ ├── System.Diagnostics.TraceSource.wasm
│ │ │ ├── System.Globalization.Calendars.wasm
│ │ │ ├── System.Globalization.Extensions.wasm
│ │ │ ├── System.IO.Compression.FileSystem.wasm
│ │ │ ├── System.IO.FileSystem.DriveInfo.wasm
│ │ │ ├── System.IO.FileSystem.Primitives.wasm
│ │ │ ├── System.IO.UnmanagedMemoryStream.wasm
│ │ │ ├── System.Net.WebHeaderCollection.wasm
│ │ │ ├── System.Reflection.DispatchProxy.wasm
│ │ │ ├── System.Reflection.TypeExtensions.wasm
│ │ │ ├── System.Resources.ResourceManager.wasm
│ │ │ ├── System.Runtime.InteropServices.wasm
│ │ │ ├── System.Runtime.Serialization.Xml.wasm
│ │ │ ├── System.Security.Cryptography.Cng.wasm
│ │ │ ├── System.Security.Cryptography.Csp.wasm
│ │ │ ├── System.Text.Encoding.CodePages.wasm
│ │ │ ├── System.Text.Encoding.Extensions.wasm
│ │ │ ├── System.Text.RegularExpressions.wasm
│ │ │ ├── System.Threading.Tasks.Dataflow.wasm
│ │ │ ├── System.Threading.Tasks.Parallel.wasm
│ │ │ ├── ToolGood.Algorithm.WebAssembly.wasm
│ │ │ ├── Microsoft.AspNetCore.Authorization.wasm
│ │ │ ├── Microsoft.Extensions.Configuration.wasm
│ │ │ ├── System.ComponentModel.Annotations.wasm
│ │ │ ├── System.Diagnostics.FileVersionInfo.wasm
│ │ │ ├── System.IO.FileSystem.AccessControl.wasm
│ │ │ ├── System.Reflection.Emit.Lightweight.wasm
│ │ │ ├── System.Runtime.Serialization.Json.wasm
│ │ │ ├── System.Security.Principal.Windows.wasm
│ │ │ ├── System.Threading.Tasks.Extensions.wasm
│ │ │ ├── Microsoft.AspNetCore.Components.Forms.wasm
│ │ │ ├── Microsoft.AspNetCore.Components.Web.wasm
│ │ │ ├── System.ComponentModel.DataAnnotations.wasm
│ │ │ ├── System.ComponentModel.EventBasedAsync.wasm
│ │ │ ├── System.ComponentModel.TypeConverter.wasm
│ │ │ ├── System.Diagnostics.DiagnosticSource.wasm
│ │ │ ├── System.Reflection.Emit.ILGeneration.wasm
│ │ │ ├── System.Security.Cryptography.Encoding.wasm
│ │ │ ├── System.Security.Cryptography.OpenSsl.wasm
│ │ │ ├── Microsoft.Extensions.Configuration.Json.wasm
│ │ │ ├── Microsoft.Extensions.FileSystemGlobbing.wasm
│ │ │ ├── System.Runtime.CompilerServices.Unsafe.wasm
│ │ │ ├── System.Runtime.CompilerServices.VisualC.wasm
│ │ │ ├── System.Runtime.Serialization.Formatters.wasm
│ │ │ ├── System.Runtime.Serialization.Primitives.wasm
│ │ │ ├── System.Security.Cryptography.Algorithms.wasm
│ │ │ ├── System.Security.Cryptography.Primitives.wasm
│ │ │ ├── Microsoft.Extensions.Configuration.Binder.wasm
│ │ │ ├── Microsoft.Extensions.DependencyInjection.wasm
│ │ │ ├── Microsoft.Extensions.Logging.Abstractions.wasm
│ │ │ ├── System.Diagnostics.TextWriterTraceListener.wasm
│ │ │ ├── System.Private.DataContractSerialization.wasm
│ │ │ ├── System.Runtime.InteropServices.JavaScript.wasm
│ │ │ ├── Microsoft.AspNetCore.Components.WebAssembly.wasm
│ │ │ ├── Microsoft.Extensions.FileProviders.Physical.wasm
│ │ │ ├── Microsoft.Extensions.Configuration.Abstractions.wasm
│ │ │ ├── Microsoft.Extensions.FileProviders.Abstractions.wasm
│ │ │ ├── System.Security.Cryptography.X509Certificates.wasm
│ │ │ ├── Microsoft.Extensions.Configuration.FileExtensions.wasm
│ │ │ ├── System.Runtime.InteropServices.RuntimeInformation.wasm
│ │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.wasm
│ │ │ └── emcc-props.json
│ │ └── web.config
│ ├── Pages
│ │ ├── _ViewImports.cshtml
│ │ ├── Privacy.cshtml
│ │ ├── Shared
│ │ │ ├── _ValidationScriptsPartial.cshtml
│ │ │ └── _Layout.cshtml.css
│ │ ├── Index.cshtml.cs
│ │ ├── Privacy.cshtml.cs
│ │ ├── Error.cshtml.cs
│ │ ├── Error.cshtml
│ │ └── Test.cshtml
│ ├── appsettings.json
│ ├── appsettings.Development.json
│ ├── ToolGood.Algorithm.WebTest.csproj
│ ├── Properties
│ │ └── launchSettings.json
│ └── Program.cs
├── BenchmarkSuite1
│ ├── Program.cs
│ └── BenchmarkSuite1.csproj
├── ToolGood.Algorithm.Test
│ ├── ToolGood.Algorithm.Test.csproj
│ ├── AlgorithmEngine
│ │ ├── AlgorithmEngineTest_vlookup.cs
│ │ └── Cylinder.cs
│ ├── Tests
│ │ └── IssuesTest.cs
│ └── Program.cs
└── ToolGood.Algorithm.WebAssembly
│ ├── Properties
│ └── launchSettings.json
│ └── ToolGood.Algorithm.WebAssembly.csproj
└── tools
├── Antlr4Helper.JavaHelper
├── Antlr4Helper.JavaHelper.csproj
└── Program.cs
├── Antlr4Helper.CSharpHelper
└── Antlr4Helper.CSharpHelper.csproj
├── Antlr4Helper.JavaScriptHelper
├── Antlr4Helper.JavaScriptHelper.csproj
└── Helpers
│ └── MiniSerializedATN.cs
└── Antlr4Helper.sln
/java/toolgood.algorithm/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.settings
3 | /.vscode
4 |
--------------------------------------------------------------------------------
/支撑压力指标/0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/支撑压力指标/0.png
--------------------------------------------------------------------------------
/支撑压力指标/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/支撑压力指标/1.png
--------------------------------------------------------------------------------
/支撑压力指标/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/支撑压力指标/2.png
--------------------------------------------------------------------------------
/支撑压力指标/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/支撑压力指标/3.png
--------------------------------------------------------------------------------
/支撑压力指标/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/支撑压力指标/4.png
--------------------------------------------------------------------------------
/g4/math.g4.java.old:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/g4/math.g4.java.old
--------------------------------------------------------------------------------
/HtmlEditor/README.md:
--------------------------------------------------------------------------------
1 | 说明
2 | =====
3 |
4 | 代码从`ToolGood.FlowVision`移过来的, 目前没时间同步,大家凑活着用吧。
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/build.bat:
--------------------------------------------------------------------------------
1 | mvn clean install -Dmaven.test.skip javadoc:jar source:jar install gpg:sign
--------------------------------------------------------------------------------
/java/toolgood.algorithm/build2.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/java/toolgood.algorithm/build2.exe
--------------------------------------------------------------------------------
/g4/_run_math_cs.bat:
--------------------------------------------------------------------------------
1 | java -jar antlr-4.13.2-complete.jar math.g4 -no-listener -visitor -Dlanguage=CSharp -long-messages -o bin
2 |
3 | pasue
--------------------------------------------------------------------------------
/g4/_run_math_java.bat:
--------------------------------------------------------------------------------
1 | java -jar antlr-4.13.2-complete.jar math.g4 -no-listener -visitor -Dlanguage=Java -long-messages -o bin
2 |
3 | pasue
--------------------------------------------------------------------------------
/g4/_run_math_js.bat:
--------------------------------------------------------------------------------
1 | java -jar antlr-4.12.0-complete.jar math.g4 -no-listener -visitor -Dlanguage=JavaScript -long-messages -o bin
2 |
3 | pasue
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/ToolGood.Algorithm.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm/ToolGood.Algorithm.snk
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/icudt_CJK.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/icudt_CJK.dat
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/mscorlib.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/mscorlib.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Core.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Core.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Data.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Data.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Web.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Web.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/WindowsBase.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/WindowsBase.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/icudt_EFIGS.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/icudt_EFIGS.dat
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/icudt_no_CJK.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/icudt_no_CJK.dat
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/netstandard.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/netstandard.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using ToolGood.Algorithm2.WebTest
2 | @namespace ToolGood.Algorithm2.WebTest.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Buffers.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Buffers.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Console.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Console.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Drawing.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Drawing.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Memory.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Memory.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Windows.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Windows.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/dotnet.native.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/dotnet.native.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.CSharp.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.CSharp.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.AppContext.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.AppContext.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Pipes.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Pipes.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Http.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Http.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Mail.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Mail.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Ping.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Ping.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Quic.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Quic.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Numerics.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Numerics.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Json.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Json.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ValueTuple.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ValueTuple.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.Linq.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.Linq.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XPath.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XPath.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.JSInterop.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.JSInterop.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Data.Common.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Data.Common.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Formats.Asn1.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Formats.Asn1.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Formats.Tar.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Formats.Tar.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Pipelines.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Pipelines.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Requests.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Requests.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Security.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Security.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Sockets.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Sockets.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebProxy.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebProxy.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ObjectModel.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ObjectModel.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.Uri.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.Uri.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.Xml.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.Xml.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Transactions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Transactions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/ToolGood.Algorithm.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/ToolGood.Algorithm.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning"
6 | }
7 | },
8 | "AllowedHosts": "*"
9 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.VisualBasic.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.VisualBasic.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Configuration.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Configuration.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Dynamic.Runtime.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Dynamic.Runtime.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Globalization.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Globalization.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.Parallel.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.Parallel.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.Queryable.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.Queryable.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Http.Json.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Http.Json.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebClient.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebClient.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebSockets.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebSockets.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.CoreLib.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.CoreLib.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Emit.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Emit.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Handles.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Handles.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Loader.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Loader.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Claims.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Claims.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ServiceProcess.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ServiceProcess.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encoding.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encoding.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Timer.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Timer.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Web.HttpUtility.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Web.HttpUtility.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XDocument.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XDocument.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XmlDocument.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XmlDocument.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Antlr4.Runtime.Standard.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Antlr4.Runtime.Standard.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Win32.Registry.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Win32.Registry.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Debug.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Debug.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Tools.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Tools.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.Expressions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Linq.Expressions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.HttpListener.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.HttpListener.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.ServicePoint.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.ServicePoint.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Numerics.Vectors.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Numerics.Vectors.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.Xml.Linq.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.Xml.Linq.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Resources.Reader.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Resources.Reader.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Resources.Writer.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Resources.Writer.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Numerics.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Numerics.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ServiceModel.Web.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ServiceModel.Web.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Thread.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Thread.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.ReaderWriter.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.ReaderWriter.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.Serialization.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.Serialization.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XmlSerializer.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XmlSerializer.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.VisualBasic.Core.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.VisualBasic.Core.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Win32.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Win32.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Process.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Process.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Tracing.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Tracing.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Drawing.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Drawing.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.IsolatedStorage.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.IsolatedStorage.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.MemoryMappedFiles.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.MemoryMappedFiles.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.NameResolution.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.NameResolution.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Metadata.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Metadata.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Extensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Extensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Intrinsics.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Intrinsics.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Principal.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Principal.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encodings.Web.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encodings.Web.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Channels.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Channels.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Overlapped.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Overlapped.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.ThreadPool.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.ThreadPool.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Transactions.Local.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Transactions.Local.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XPath.XDocument.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Xml.XPath.XDocument.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "DetailedErrors": true,
3 | "Logging": {
4 | "LogLevel": {
5 | "Default": "Information",
6 | "Microsoft.AspNetCore": "Warning"
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Metadata.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Metadata.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Logging.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Logging.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Options.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Options.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.Concurrent.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.Concurrent.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.Immutable.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.Immutable.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.NonGeneric.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.NonGeneric.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Data.DataSetExtensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Data.DataSetExtensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Contracts.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.Contracts.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.StackTrace.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.StackTrace.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.Brotli.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.Brotli.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.ZipFile.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.ZipFile.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.Watcher.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.Watcher.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Pipes.AccessControl.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Pipes.AccessControl.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.NetworkInformation.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.NetworkInformation.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebSockets.Client.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebSockets.Client.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Extensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Extensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.AccessControl.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.AccessControl.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.SecureString.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.SecureString.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.JSInterop.WebAssembly.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.JSInterop.WebAssembly.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.Specialized.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Collections.Specialized.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.TraceSource.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.TraceSource.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Globalization.Calendars.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Globalization.Calendars.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Globalization.Extensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Globalization.Extensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.FileSystem.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.Compression.FileSystem.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.DriveInfo.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.DriveInfo.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.UnmanagedMemoryStream.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.UnmanagedMemoryStream.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebHeaderCollection.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Net.WebHeaderCollection.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.DispatchProxy.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.DispatchProxy.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.TypeExtensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.TypeExtensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Resources.ResourceManager.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Resources.ResourceManager.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.InteropServices.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.InteropServices.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Xml.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Xml.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Cng.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Cng.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Csp.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Csp.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encoding.CodePages.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encoding.CodePages.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encoding.Extensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.Encoding.Extensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.RegularExpressions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Text.RegularExpressions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.Dataflow.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.Dataflow.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.Parallel.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.Parallel.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/ToolGood.Algorithm.WebAssembly.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/ToolGood.Algorithm.WebAssembly.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Privacy.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model PrivacyModel
3 | @{
4 | ViewData["Title"] = "Privacy Policy";
5 | }
6 |
@ViewData["Title"]
7 |
8 | Use this page to detail your site's privacy policy.
9 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Authorization.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Authorization.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.Annotations.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.Annotations.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.FileVersionInfo.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.FileVersionInfo.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.AccessControl.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.IO.FileSystem.AccessControl.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Emit.Lightweight.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Emit.Lightweight.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Json.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Json.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Principal.Windows.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Principal.Windows.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.Extensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Threading.Tasks.Extensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.Forms.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.Forms.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.DataAnnotations.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.DataAnnotations.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.EventBasedAsync.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.EventBasedAsync.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.TypeConverter.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.ComponentModel.TypeConverter.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.DiagnosticSource.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.DiagnosticSource.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Emit.ILGeneration.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Reflection.Emit.ILGeneration.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Encoding.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Encoding.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.OpenSsl.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.OpenSsl.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Shared/_ValidationScriptsPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.Json.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.Json.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.FileSystemGlobbing.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.FileSystemGlobbing.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.CompilerServices.Unsafe.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.CompilerServices.Unsafe.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.CompilerServices.VisualC.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.CompilerServices.VisualC.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Formatters.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Formatters.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.Serialization.Primitives.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Algorithms.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Algorithms.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Primitives.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.Primitives.wasm
--------------------------------------------------------------------------------
/tools/Antlr4Helper.JavaHelper/Antlr4Helper.JavaHelper.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net5.0
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.Binder.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.Binder.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.TextWriterTraceListener.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Diagnostics.TextWriterTraceListener.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.DataContractSerialization.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Private.DataContractSerialization.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.InteropServices.JavaScript.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.InteropServices.JavaScript.wasm
--------------------------------------------------------------------------------
/tools/Antlr4Helper.CSharpHelper/Antlr4Helper.CSharpHelper.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net6.0
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.FileProviders.Physical.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.FileProviders.Physical.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.Abstractions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.Abstractions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.FileProviders.Abstractions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.FileProviders.Abstractions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.X509Certificates.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Security.Cryptography.X509Certificates.wasm
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/FsmContext.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | public class FsmContext {
4 | public boolean Return;
5 | public int NextState;
6 | public Lexer L;
7 | public int StateStack;
8 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/RootFinding/RootNumber.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.RootFinding;
2 |
3 | public class RootNumber {
4 | public Double root;
5 | public RootNumber(){
6 | root=0.0;
7 | }
8 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.FileExtensions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.Configuration.FileExtensions.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/toolgood/ToolGood.Algorithm/HEAD/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.wasm
--------------------------------------------------------------------------------
/tools/Antlr4Helper.JavaHelper/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace Antlr4Helper.JavaHelper
4 | {
5 | class Program
6 | {
7 | static void Main(string[] args)
8 | {
9 | Console.WriteLine("Hello World!");
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/LitJson/FsmContext.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.LitJson
2 | {
3 | internal sealed class FsmContext
4 | {
5 | public bool Return;
6 | public int NextState;
7 | public Lexer L;
8 | public int StateStack;
9 | }
10 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/LitJson/JsonType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.LitJson
2 | {
3 | internal enum JsonType
4 | {
5 | None,
6 |
7 | Object,
8 | Array,
9 | String,
10 | Double,
11 | Boolean,
12 | Null
13 | }
14 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/MyParameter.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.internals;
2 |
3 | import toolgood.algorithm.math.mathParser.ProgContext;
4 |
5 | public class MyParameter {
6 | public ProgContext Context;
7 | public String Name;
8 | }
9 |
--------------------------------------------------------------------------------
/csharp/BenchmarkSuite1/Program.cs:
--------------------------------------------------------------------------------
1 | using BenchmarkDotNet.Running;
2 |
3 | namespace BenchmarkSuite1
4 | {
5 | internal class Program
6 | {
7 | static void Main(string[] args)
8 | {
9 | var _ = BenchmarkRunner.Run(typeof(Program).Assembly);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/ToolGood.Algorithm.WebTest.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net10.0
5 | enable
6 | enable
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/enums/OperandType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.enums;
2 |
3 | public enum OperandType {
4 | NULL,
5 | ERROR,
6 | DATE,
7 | ARRARY,
8 | NUMBER,
9 | BOOLEAN,
10 | TEXT,
11 | JSON,
12 | ARRARYJSON,
13 | }
--------------------------------------------------------------------------------
/HtmlEditor/ace/mode-text.js:
--------------------------------------------------------------------------------
1 | ; (function() {
2 | window.require(["ace/mode/text"], function(m) {
3 | if (typeof module == "object" && typeof exports == "object" && module) {
4 | module.exports = m;
5 | }
6 | });
7 | })();
--------------------------------------------------------------------------------
/HtmlEditor/ace/ext-error_marker.js:
--------------------------------------------------------------------------------
1 | ; (function() {
2 | window.require(["ace/ext/error_marker"], function(m) {
3 | if (typeof module == "object" && typeof exports == "object" && module) {
4 | module.exports = m;
5 | }
6 | });
7 | })();
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/enums/ConditionTreeType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.enums;
2 |
3 | public enum ConditionTreeType {
4 | /**
5 | * 文本
6 | */
7 | String,
8 | /**
9 | * 并
10 | */
11 | And,
12 | /**
13 | * 或
14 | */
15 | Or,
16 | /**
17 | * 错误
18 | */
19 | Error
20 | }
21 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.Test/ToolGood.Algorithm.Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net10.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/MyFunction.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.internals;
2 |
3 | import toolgood.algorithm.Operand;
4 | import toolgood.algorithm.math.mathParser.ProgContext;
5 |
6 | import java.util.List;
7 |
8 | public class MyFunction {
9 | public ProgContext Context;
10 | public String Name;
11 | public List OperandList;
12 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebAssembly/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "ToolGood.Algorithm.WebAssembly": {
4 | "commandName": "Project",
5 | "launchBrowser": true,
6 | "environmentVariables": {
7 | "ASPNETCORE_ENVIRONMENT": "Development"
8 | },
9 | "applicationUrl": "https://localhost:51417;http://localhost:51418"
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/UnitNotSupportedException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.UnitConversion
4 | {
5 | internal sealed class UnitNotSupportedException : NotSupportedException
6 | {
7 | internal UnitNotSupportedException(string unit) : base(string.Format("The Unit '{0}' is not supported by this converter", unit))
8 | {
9 | }
10 | }
11 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/unitConversion/UnitNotSupportedException.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.unitConversion;
2 |
3 | public class UnitNotSupportedException extends Exception {
4 | public UnitNotSupportedException() {
5 | }
6 |
7 | public UnitNotSupportedException(String unit) {
8 | super("The Unit '{" + unit + "}' is not supported by this converter");
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/DiyNameInfo.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 |
6 | public class DiyNameInfo {
7 | public List Parameters;
8 |
9 | public List Functions;
10 |
11 | public DiyNameInfo(){
12 | Parameters=new ArrayList<>();
13 | Functions=new ArrayList<>();
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/JsonType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | /**
4 | * JsonType
5 | */
6 | public enum JsonType {
7 |
8 | None(1),
9 | Object(2),
10 | Array(3),
11 | String(4),
12 | Double(5),
13 | Boolean(6),
14 | Null(7);
15 |
16 | public int value;
17 | // 构造方法
18 | private JsonType( int index) {
19 | this.value = index;
20 | }
21 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Index.cshtml.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Mvc.RazorPages;
2 |
3 | namespace ToolGood.Algorithm2.WebTest.Pages
4 | {
5 | public class IndexModel : PageModel
6 | {
7 | private readonly ILogger _logger;
8 |
9 | public IndexModel(ILogger logger)
10 | {
11 | _logger = logger;
12 | }
13 |
14 | public void OnGet()
15 | {
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/tools/Antlr4Helper.JavaScriptHelper/Antlr4Helper.JavaScriptHelper.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net5.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Privacy.cshtml.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Mvc.RazorPages;
2 |
3 | namespace ToolGood.Algorithm2.WebTest.Pages
4 | {
5 | public class PrivacyModel : PageModel
6 | {
7 | private readonly ILogger _logger;
8 |
9 | public PrivacyModel(ILogger logger)
10 | {
11 | _logger = logger;
12 | }
13 |
14 | public void OnGet()
15 | {
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/MassUnitType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | ///
4 | /// 重量单位
5 | ///
6 | public enum MassUnitType : byte
7 | {
8 | ///
9 | /// 克
10 | ///
11 | G = 31,
12 |
13 | ///
14 | /// 千克
15 | ///
16 | KG = 32,
17 |
18 | ///
19 | /// 吨
20 | ///
21 | T = 33
22 | }
23 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/JsonToken.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | public enum JsonToken {
4 | None(1),
5 |
6 | ObjectStart(2),
7 | PropertyName(3),
8 | ObjectEnd(4),
9 |
10 | ArrayStart(5),
11 | ArrayEnd(6),
12 |
13 | Double(7),
14 |
15 | String(8),
16 |
17 | Boolean(9),
18 | Null(10);
19 |
20 |
21 | public int value;
22 | // 构造方法
23 | private JsonToken( int index) {
24 | this.value = index;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/NumberUnitType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | internal enum NumberUnitType : byte
4 | {
5 | MM = 1,
6 | CM = 2,
7 | DM = 3,
8 | M = 4,
9 | KM = 5,
10 |
11 | MM2 = 11,
12 | CM2 = 12,
13 | DM2 = 13,
14 | M2 = 14,
15 | KM2 = 15,
16 |
17 | MM3 = 21,
18 | CM3 = 22,
19 | DM3 = 23,
20 | M3 = 24,
21 | KM3 = 25,
22 |
23 | G = 31,
24 | KG = 32,
25 | T = 33,
26 | }
27 | }
--------------------------------------------------------------------------------
/csharp/BenchmarkSuite1/BenchmarkSuite1.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net10.0
5 | Exe
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/ConditionTreeType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | ///
4 | /// 条件树类型
5 | ///
6 | public enum ConditionTreeType
7 | {
8 | ///
9 | /// 文本
10 | ///
11 | String,
12 |
13 | ///
14 | /// 并
15 | ///
16 | And,
17 |
18 | ///
19 | /// 或
20 | ///
21 | Or,
22 |
23 | ///
24 | /// 错误
25 | ///
26 | Error
27 | }
28 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Statistics/QuantileDefinition.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Statistics;
2 |
3 | public enum QuantileDefinition {
4 | R1,// = 1,// SAS3 = 1, EmpiricalInvCDF = 1,
5 | R2,// = 2,// SAS5 = 2, EmpiricalInvCDFAverage = 2,
6 | R3,// = 3, //SAS2 = 3, Nearest = 3,
7 | R4,// = 4, //SAS1 = 4, California = 4,
8 | R5,// = 5, //Hydrology = 5, Hazen = 5,
9 | R6,// = 6, //SAS4 = 6, Nist = 6, Weibull = 6, SPSS = 6,
10 | R7 ,//= 7, Excel,// = 7,// Mode = 7, S = 7,
11 | R8,// = 8, //Median = 8, Default = 8,
12 | R9,// = 9, //Normal = 9,
13 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Statistics/QuantileDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.MathNet.Numerics.Statistics
2 | {
3 | internal enum QuantileDefinition
4 | {
5 | R1 = 1,// SAS3 = 1, EmpiricalInvCDF = 1,
6 | R2 = 2,// SAS5 = 2, EmpiricalInvCDFAverage = 2,
7 | R3 = 3, //SAS2 = 3, Nearest = 3,
8 | R4 = 4, //SAS1 = 4, California = 4,
9 | R5 = 5, //Hydrology = 5, Hazen = 5,
10 | R6 = 6, //SAS4 = 6, Nist = 6, Weibull = 6, SPSS = 6,
11 | R7 = 7, Excel = 7,// Mode = 7, S = 7,
12 | R8 = 8, //Median = 8, Default = 8,
13 | R9 = 9, //Normal = 9,
14 | }
15 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/enums/NumberUnitType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.enums;
2 |
3 | public enum NumberUnitType {
4 | MM(1),
5 | CM(2),
6 | DM(3),
7 | M(4),
8 | KM(5),
9 |
10 | MM2(11),
11 | CM2(12),
12 | DM2(13),
13 | M2(14),
14 | KM2(15),
15 |
16 | MM3(21),
17 | CM3(22),
18 | DM3(23),
19 | M3(24),
20 | KM3(25),
21 |
22 | G(31),
23 | KG(32),
24 | T(33);
25 | private final int value;
26 |
27 | NumberUnitType(int v) {
28 | value = v;
29 | }
30 |
31 | public int getValue() {
32 | return value;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/IJsonWrapper.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | import java.math.BigDecimal;
4 |
5 | public interface IJsonWrapper {
6 |
7 | boolean IsArray();
8 | boolean IsBoolean();
9 | boolean IsDouble();
10 | boolean IsObject();
11 | boolean IsString();
12 | boolean IsNull();
13 |
14 | void SetBoolean(boolean val);
15 | void SetDouble(BigDecimal val);
16 | void SetJsonType(JsonType type);
17 | void SetString(String val);
18 | void SetNull();
19 |
20 | void Add(IJsonWrapper val);
21 |
22 | void Set(String key, IJsonWrapper val);
23 |
24 |
25 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/LitJson/JsonException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.LitJson
4 | {
5 | internal sealed class JsonException : ApplicationException
6 | {
7 | internal JsonException(ParserToken token, Exception inner_exception) :
8 | base(string.Format("Invalid token '{0}' in input string", token), inner_exception)
9 | {
10 | }
11 |
12 | internal JsonException(int c) :
13 | base(string.Format("Invalid character '{0}' in input string", (char)c))
14 | {
15 | }
16 |
17 | public JsonException(string message) : base(message)
18 | {
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/LitJson/IJsonWrapper.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.LitJson
2 | {
3 | internal interface IJsonWrapper
4 | {
5 | bool IsArray { get; }
6 | bool IsBoolean { get; }
7 | bool IsDouble { get; }
8 | bool IsObject { get; }
9 | bool IsString { get; }
10 | bool IsNull { get; }
11 |
12 | void SetBoolean(bool val);
13 |
14 | void SetDouble(decimal val);
15 |
16 | void SetJsonType(JsonType type);
17 |
18 | void SetString(string val);
19 |
20 | void SetNull();
21 |
22 | void Add(IJsonWrapper val);
23 |
24 | void Set(string key, IJsonWrapper val);
25 | }
26 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/DistanceUnitType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | ///
4 | /// 长度单位
5 | ///
6 | public enum DistanceUnitType : byte
7 | {
8 | ///
9 | /// 毫米
10 | ///
11 | MM = 1,
12 |
13 | ///
14 | /// 厘米
15 | ///
16 | CM = 2,
17 |
18 | ///
19 | /// 分米
20 | ///
21 | DM = 3,
22 |
23 | ///
24 | /// 米
25 | ///
26 | M = 4,
27 |
28 | ///
29 | /// 千米
30 | ///
31 | KM = 5,
32 | }
33 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/AreaUnitType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | ///
4 | /// 面积单位
5 | ///
6 | public enum AreaUnitType : byte
7 | {
8 | ///
9 | /// 平方毫米
10 | ///
11 | MM2 = 11,
12 |
13 | ///
14 | /// 平方厘米
15 | ///
16 | CM2 = 12,
17 |
18 | ///
19 | /// 平方分米
20 | ///
21 | DM2 = 13,
22 |
23 | ///
24 | /// 平方米
25 | ///
26 | M2 = 14,
27 |
28 | ///
29 | /// 平方千米
30 | ///
31 | KM2 = 15,
32 | }
33 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/VolumeUnitType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | ///
4 | /// 体积单位
5 | ///
6 | public enum VolumeUnitType : byte
7 | {
8 | ///
9 | /// 立方毫米
10 | ///
11 | MM3 = 21,
12 |
13 | ///
14 | /// 立方厘米
15 | ///
16 | CM3 = 22,
17 |
18 | ///
19 | /// 立方分米
20 | ///
21 | DM3 = 23,
22 |
23 | ///
24 | /// 立方米
25 | ///
26 | M3 = 24,
27 |
28 | ///
29 | /// 立方千米
30 | ///
31 | KM3 = 25,
32 | }
33 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/JsonException.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | public class JsonException extends Exception {
4 | /**
5 | *
6 | */
7 | private static final long serialVersionUID = 1L;
8 |
9 | public JsonException(ParserToken token, Exception inner_exception) {
10 | super();
11 | // base(String.Format("Invalid token '{0}' in input string", token),
12 | // inner_exception)
13 | }
14 |
15 | public JsonException(int c) {
16 | super();
17 | // base(String.Format("Invalid character '{0}' in input string", (char)c))
18 | }
19 |
20 | public JsonException(String message) {
21 | // : base(message)
22 | }
23 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/LitJson/ParserToken.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.LitJson
2 | {
3 | internal enum ParserToken
4 | {
5 | // Lexer tokens (see section A.1.1. of the manual)
6 | None = System.Char.MaxValue + 1,
7 |
8 | Number,
9 | True,
10 | False,
11 | Null,
12 | CharSeq,
13 |
14 | // Single char
15 | Char,
16 |
17 | // Parser Rules (see section A.2.1 of the manual)
18 | Text,
19 |
20 | Object,
21 | ObjectPrime,
22 | Pair,
23 | PairRest,
24 | Array,
25 | ArrayPrime,
26 | Value,
27 | ValueRest,
28 | String,
29 |
30 | // End of input
31 | End,
32 |
33 | // The empty rule
34 | Epsilon
35 | }
36 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/AntlrErrorListener.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.internals;
2 |
3 | import org.antlr.v4.runtime.BaseErrorListener;
4 | import org.antlr.v4.runtime.RecognitionException;
5 | import org.antlr.v4.runtime.Recognizer;
6 |
7 | public class AntlrErrorListener extends BaseErrorListener {
8 | public boolean IsError;
9 | public String ErrorMsg;
10 |
11 | @Override
12 | public void syntaxError(Recognizer, ?> recognizer,
13 | Object offendingSymbol,
14 | int line,
15 | int charPositionInLine,
16 | String msg,
17 | RecognitionException e)
18 | {
19 | IsError = true;
20 | ErrorMsg = msg;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Error.cshtml.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Mvc;
2 | using Microsoft.AspNetCore.Mvc.RazorPages;
3 | using System.Diagnostics;
4 |
5 | namespace ToolGood.Algorithm2.WebTest.Pages
6 | {
7 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
8 | [IgnoreAntiforgeryToken]
9 | public class ErrorModel : PageModel
10 | {
11 | public string? RequestId { get; set; }
12 |
13 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
14 |
15 | private readonly ILogger _logger;
16 |
17 | public ErrorModel(ILogger logger)
18 | {
19 | _logger = logger;
20 | }
21 |
22 | public void OnGet()
23 | {
24 | RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "iisSettings": {
4 | "windowsAuthentication": false,
5 | "anonymousAuthentication": true,
6 | "iisExpress": {
7 | "applicationUrl": "http://localhost:55520",
8 | "sslPort": 0
9 | }
10 | },
11 | "profiles": {
12 | "http": {
13 | "commandName": "Project",
14 | "dotnetRunMessages": true,
15 | "launchBrowser": true,
16 | "applicationUrl": "http://localhost:5117",
17 | "environmentVariables": {
18 | "ASPNETCORE_ENVIRONMENT": "Development"
19 | }
20 | },
21 | "IIS Express": {
22 | "commandName": "IISExpress",
23 | "launchBrowser": true,
24 | "environmentVariables": {
25 | "ASPNETCORE_ENVIRONMENT": "Development"
26 | }
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/SpecialFunctions/Stability.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics
4 | {
5 | internal partial class SpecialFunctions
6 | {
7 | public static double ExponentialMinusOne(double power)
8 | {
9 | double x = Math.Abs(power);
10 | if (x > 0.1) {
11 | return Math.Exp(power) - 1.0;
12 | }
13 |
14 | if (x < x.PositiveEpsilonOf()) {
15 | return x;
16 | }
17 |
18 | // Series Expansion to x^k / k!
19 | int k = 0;
20 | double term = 1.0;
21 | return Evaluate.Series(
22 | () => {
23 | k++;
24 | term *= power;
25 | term /= k;
26 | return term;
27 | });
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/enums/MassUnitType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.enums;
2 |
3 | public enum MassUnitType {
4 | ///
5 | /// 克
6 | ///
7 | G(31),
8 | ///
9 | /// 千克
10 | ///
11 | KG(32),
12 | ///
13 | /// 吨
14 | ///
15 | T(33);
16 |
17 | private final int value;
18 |
19 | MassUnitType(int v) {
20 | value = v;
21 | }
22 |
23 | public static MassUnitType intToEnum(int value) {
24 | switch (value) {
25 | case 31:
26 | return G;
27 | case 32:
28 | return KG;
29 | case 33:
30 | return T;
31 | default:
32 | return null;
33 | }
34 | }
35 |
36 | public int getValue() {
37 | return value;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/unitConversion/BaseUnitConverter.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.unitConversion;
2 |
3 | import java.math.BigDecimal;
4 |
5 | public abstract class BaseUnitConverter {
6 | public String UnitLeft;
7 | public String UnitRight;
8 | protected UnitFactors Units;
9 |
10 |
11 | protected void Instantiate(UnitFactors conversionFactors, String leftUnit, String rightUnit) {
12 | Units = conversionFactors;
13 | UnitLeft = leftUnit;
14 | UnitRight = rightUnit;
15 | }
16 |
17 | public BigDecimal LeftToRight(BigDecimal value) throws UnitNotSupportedException {
18 | BigDecimal startFactor = Units.FindFactor(UnitLeft);
19 | BigDecimal endFactor = Units.FindFactor(UnitRight);
20 | BigDecimal result = (value.divide(startFactor)).multiply(endFactor);
21 | return result;
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/ParserToken.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | public enum ParserToken {
4 | None(0x10000),
5 | Number(0x10001),
6 | True(0x10002),
7 | False(0x10003),
8 | Null(0x10004),
9 | CharSeq(0x10005),
10 | // Single char
11 | Char(0x10006),
12 |
13 | // Parser Rules (see section A.2.1 of the manual)
14 | Text(0x10007),
15 | Object(0x10008),
16 | ObjectPrime(0x10009),
17 | Pair(0x10010),
18 | PairRest(0x10011),
19 | Array(0x10012),
20 | ArrayPrime(0x10013),
21 | Value(0x10014),
22 | ValueRest(0x10015),
23 | String(0x10016),
24 |
25 | // End of input
26 | End(0x10017),
27 |
28 | // The empty rule
29 | Epsilon(0x10018);
30 |
31 |
32 | public int value;
33 | // 构造方法
34 | private ParserToken( int index) {
35 | this.value = index;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Statistics/Statistics.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | #if WebAssembly
5 | using System.Linq2;
6 | #else
7 | using System.Linq;
8 | #endif
9 |
10 |
11 | namespace ToolGood.Algorithm.MathNet.Numerics.Statistics
12 | {
13 | ///
14 | /// 条件
15 | ///
16 | internal static class Statistics
17 | {
18 | public static double QuantileCustom(this IEnumerable data, double tau, QuantileDefinition definition)
19 | {
20 | double[] array = data.ToArray();
21 | return ArrayStatistics.QuantileCustomInplace(array, tau, definition);
22 | }
23 |
24 | public static double QuantileRank(this IEnumerable data, double x)
25 | {
26 | double[] array = data.ToArray();
27 | Array.Sort(array);
28 | return SortedArrayStatistics.QuantileRank(array, x);
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/test/java/toolgood/algorithm/DemoApplication.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm;
2 |
3 |
4 | import toolgood.algorithm.Tests3.AlgorithmEngineHelperTest;
5 |
6 | public class DemoApplication {
7 | public static void main(String[] args) throws Exception {
8 |
9 | AlgorithmEngine engine = new AlgorithmEngine();
10 | MyDate dt2 = engine.TryEvaluate("DATE(2024, 8, 1) + TIME(8, 0, 0)", MyDate.now());
11 | System.out.println(dt2);
12 |
13 | MyDate dt3 = engine.TryEvaluate("DATE(2024, 8, 1,1,2,3)", MyDate.now());
14 | System.out.println(dt3);
15 |
16 |
17 | AlgorithmEngine e=new AlgorithmEngine();
18 | int c = e.TryEvaluate("2+3//eee", 0);
19 | int c2 = e.TryEvaluate("2+3 ee", 0);
20 |
21 | int dt = e.TryEvaluate("IndexOf('abcd','cd')", -1);
22 |
23 | int t= e.TryEvaluate("1>2?1:2", 0);
24 | if (t!=2){
25 | System.out.println(t);
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/UnitFactors.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | #if WebAssembly
3 | using System.Linq2;
4 | #else
5 | using System.Linq;
6 | #endif
7 |
8 | namespace ToolGood.Algorithm.UnitConversion
9 | {
10 | internal sealed class UnitFactors : Dictionary
11 | {
12 | // Find the key or null for a given unit
13 | internal UnitFactorSynonyms FindUnit(UnitFactorSynonyms synonyms)
14 | {
15 | return this.Keys.FirstOrDefault(factor => factor.Contains(synonyms));
16 | }
17 |
18 | // Get the factor for a given unit
19 | internal decimal FindFactor(UnitFactorSynonyms synonyms)
20 | {
21 | var unit = this.FirstOrDefault(factor => factor.Key.Contains(synonyms));
22 | if (unit.Key == null) {
23 | throw new UnitNotSupportedException(synonyms.ToString());
24 | }
25 | return unit.Value;
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Error.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model ErrorModel
3 | @{
4 | ViewData["Title"] = "Error";
5 | }
6 |
7 | Error.
8 | An error occurred while processing your request.
9 |
10 | @if (Model.ShowRequestId)
11 | {
12 |
13 | Request ID: @Model.RequestId
14 |
15 | }
16 |
17 | Development Mode
18 |
19 | Swapping to the Development environment displays detailed information about the error that occurred.
20 |
21 |
22 | The Development environment shouldn't be enabled for deployed applications.
23 | It can result in displaying sensitive information from exceptions to end users.
24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
25 | and restarting the app.
26 |
27 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | algorithm
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
25 | 1695360233274
26 |
27 | 30
28 |
29 | org.eclipse.core.resources.regexFilterMatcher
30 | node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Constants.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet;
2 |
3 | public class Constants {
4 | /// The number log[e](pi)
5 | public final static double LnPi = 1.1447298858494001741434273513530587116472948129153d;
6 |
7 | /// The number sqrt(2)
8 | public final static double Sqrt2 = 1.4142135623730950488016887242096980785696718753769d;
9 |
10 | /// The number sqrt(2pi)
11 | public final static double Sqrt2Pi = 2.5066282746310005024157652848110452530069867406099d;
12 |
13 | /// The number log(2 * sqrt(e / pi))
14 | public final static double LogTwoSqrtEOverPi = 0.6207822376352452223455184457816472122518527279025978;
15 |
16 | /// The number 2 * sqrt(e / pi)
17 | public final static double TwoSqrtEOverPi = 1.8603827342052657173362492472666631120594218414085755;
18 |
19 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/LogNormal.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import toolgood.algorithm.mathNet.Constants;
4 | import toolgood.algorithm.mathNet.SpecialFunctions;
5 |
6 | public class LogNormal {
7 | public static double CDF(double mu, double sigma, double x)
8 | {
9 | //if (sigma < 0.0) {
10 | // throw new ArgumentException("InvalidDistributionParameters");
11 | //}
12 |
13 | return x < 0.0 ? 0.0
14 | : 0.5 * (1.0 + SpecialFunctions.Erf((Math.log(x) - mu) / (sigma * Constants.Sqrt2)));
15 | }
16 |
17 | public static double InvCDF(double mu, double sigma, double p)
18 | {
19 | //if (sigma < 0.0) {
20 | // throw new ArgumentException("InvalidDistributionParameters");
21 | //}
22 |
23 | return p <= 0.0 ? 0.0 : p >= 1.0 ? Double.POSITIVE_INFINITY
24 | : Math.exp(mu - sigma * Constants.Sqrt2 * SpecialFunctions.ErfcInv(2.0 * p));
25 | }
26 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Test.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @{
3 | Layout = null;
4 | }
5 |
6 |
7 |
8 | QUnit Test Suite
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/tools/Antlr4Helper.JavaScriptHelper/Helpers/MiniSerializedATN.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Text.RegularExpressions;
6 | using System.Threading.Tasks;
7 |
8 | namespace Antlr4Helper.JavaScriptHelper.Helpers
9 | {
10 | public class MiniSerializedATN
11 | {
12 | public static string MiniAtn(string atn)
13 | {
14 | atn = atn.Replace(@"\u00", @"\x");
15 | atn = Regex.Replace(atn, @"\\x0([1-7])([^01234567])", @"\$1$2");
16 | atn = Regex.Replace(atn, @"\\x0([1-7])([^01234567])", @"\$1$2");
17 |
18 | for (int i = 0; i < 64; i++)
19 | {
20 | var olds = @"\\x(" + Convert.ToString(i, 16).PadLeft(2, '0') + @")([^01234567])";
21 | var news = @"\" + Convert.ToString(i, 8).PadLeft(2, '0') + @"$2";
22 | atn = Regex.Replace(atn, olds, news);
23 | atn = Regex.Replace(atn, olds, news);
24 | }
25 | return atn;
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/FisherSnedecor.cs:
--------------------------------------------------------------------------------
1 | using ToolGood.Algorithm.MathNet.Numerics.RootFinding;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
4 | {
5 | internal sealed class FisherSnedecor
6 | {
7 | public static double CDF(double d1, double d2, double x)
8 | {
9 | //if (d1 <= 0.0 || d2 <= 0.0) {
10 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
11 | //}
12 |
13 | return SpecialFunctions.BetaRegularized(d1 / 2.0, d2 / 2.0, d1 * x / (d1 * x + d2));
14 | }
15 |
16 | public static double InvCDF(double d1, double d2, double p)
17 | {
18 | //if (d1 <= 0.0 || d2 <= 0.0) {
19 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
20 | //}
21 |
22 | return Brent.FindRoot(
23 | x => SpecialFunctions.BetaRegularized(d1 / 2.0, d2 / 2.0, d1 * x / (d1 * x + d2)) - p,
24 | 0, 1000, accuracy: 1e-12);
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/AntlrLookupEngine.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.internals;
2 |
3 | import toolgood.algorithm.AlgorithmEngine;
4 | import toolgood.algorithm.Operand;
5 | import toolgood.algorithm.litJson.JsonData;
6 |
7 | public class AntlrLookupEngine extends AlgorithmEngine {
8 | public Operand Json;
9 |
10 | @Override
11 | protected Operand GetParameter(MyParameter parameter)
12 | {
13 | JsonData v = Json.JsonValue().GetChild(parameter.Name);
14 | if (v!=null)
15 | {
16 | if (v.IsString()) return Operand.Create(v.StringValue());
17 | if (v.IsBoolean()) return Operand.Create(v.BooleanValue());
18 | if (v.IsDouble()) return Operand.Create(v.NumberValue());
19 | if (v.IsObject()) return Operand.Create(v);
20 | if (v.IsArray()) return Operand.Create(v);
21 | if (v.IsNull()) return Operand.CreateNull();
22 | return Operand.Create(v);
23 | }
24 | return super.GetParameter(parameter);
25 | }
26 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Enums/OperandType.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.Enums
2 | {
3 | ///
4 | /// 操作数类型
5 | ///
6 | public enum OperandType : byte
7 | {
8 | ///
9 | /// NULL
10 | ///
11 | NULL,
12 |
13 | ///
14 | /// 错误
15 | ///
16 | ERROR,
17 |
18 | ///
19 | /// 日期
20 | ///
21 | DATE,
22 |
23 | ///
24 | /// 数组
25 | ///
26 | ARRARY,
27 |
28 | ///
29 | /// 数字
30 | ///
31 | NUMBER,
32 |
33 | ///
34 | /// 布尔
35 | ///
36 | BOOLEAN,
37 |
38 | ///
39 | /// 字符串
40 | ///
41 | TEXT,
42 |
43 | ///
44 | /// JSON格式
45 | ///
46 | JSON,
47 |
48 | ///
49 | /// JSON格式
50 | ///
51 | ARRARYJSON,
52 | }
53 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Constants.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.MathNet.Numerics
2 | {
3 | ///
4 | /// 常量
5 | ///
6 | internal static class Constants
7 | {
8 | #region Mathematical Constants
9 |
10 | /// The number log[e](pi)
11 | public const double LnPi = 1.1447298858494001741434273513530587116472948129153d;
12 |
13 | /// The number sqrt(2)
14 | public const double Sqrt2 = 1.4142135623730950488016887242096980785696718753769d;
15 |
16 | /// The number sqrt(2pi)
17 | public const double Sqrt2Pi = 2.5066282746310005024157652848110452530069867406099d;
18 |
19 | /// The number log(2 * sqrt(e / pi))
20 | public const double LogTwoSqrtEOverPi = 0.6207822376352452223455184457816472122518527279025978;
21 |
22 | /// The number 2 * sqrt(e / pi)
23 | public const double TwoSqrtEOverPi = 1.8603827342052657173362492472666631120594218414085755;
24 |
25 | #endregion Mathematical Constants
26 | }
27 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/unitConversion/UnitFactorSynonyms.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.unitConversion;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Collections;
5 | import java.util.List;
6 |
7 | public class UnitFactorSynonyms {
8 | public List Synonyms = new ArrayList<>();
9 |
10 | public UnitFactorSynonyms() {
11 | }
12 |
13 | public UnitFactorSynonyms(String item) {
14 | Synonyms.add(item);
15 | }
16 |
17 | public UnitFactorSynonyms(String[] items) {
18 | Collections.addAll(Synonyms, items);
19 | }
20 |
21 | public boolean Contains(UnitFactorSynonyms synonyms) {
22 | for (String syn : synonyms.Synonyms) {
23 | if (this.Contains(syn)) {
24 | return true;
25 | }
26 | }
27 | return false;
28 | }
29 |
30 | private boolean Contains(String synonym) {
31 | for (String str : Synonyms) {
32 | if (str.equalsIgnoreCase(synonym)) {
33 | return true;
34 | }
35 | }
36 | return false;
37 | }
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/FisherSnedecor.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import java.util.function.Function;
4 |
5 | import toolgood.algorithm.mathNet.SpecialFunctions;
6 | import toolgood.algorithm.mathNet.RootFinding.Brent;
7 |
8 | public class FisherSnedecor {
9 | public static double CDF(double d1, double d2, double x)
10 | {
11 | //if (d1 <= 0.0 || d2 <= 0.0) {
12 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
13 | //}
14 |
15 | return SpecialFunctions.BetaRegularized(d1 / 2.0, d2 / 2.0, d1 * x / (d1 * x + d2));
16 | }
17 |
18 | public static double InvCDF(double d1, double d2, double p) throws Exception
19 | {
20 | //if (d1 <= 0.0 || d2 <= 0.0) {
21 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
22 | //}
23 | Function f= x->{
24 | return SpecialFunctions.BetaRegularized(d1 / 2.0, d2 / 2.0, d1 * x / (d1 * x + d2)) - p;
25 | };
26 |
27 | return Brent.FindRoot(f, 0, 1000, 1e-12);
28 | }
29 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Pages/Shared/_Layout.cshtml.css:
--------------------------------------------------------------------------------
1 | /* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
2 | for details on configuring this project to bundle and minify static web assets. */
3 |
4 | a.navbar-brand {
5 | white-space: normal;
6 | text-align: center;
7 | word-break: break-all;
8 | }
9 |
10 | a {
11 | color: #0077cc;
12 | }
13 |
14 | .btn-primary {
15 | color: #fff;
16 | background-color: #1b6ec2;
17 | border-color: #1861ac;
18 | }
19 |
20 | .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
21 | color: #fff;
22 | background-color: #1b6ec2;
23 | border-color: #1861ac;
24 | }
25 |
26 | .border-top {
27 | border-top: 1px solid #e5e5e5;
28 | }
29 |
30 | .border-bottom {
31 | border-bottom: 1px solid #e5e5e5;
32 | }
33 |
34 | .box-shadow {
35 | box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
36 | }
37 |
38 | button.accept-policy {
39 | font-size: 1rem;
40 | line-height: inherit;
41 | }
42 |
43 | .footer {
44 | position: absolute;
45 | bottom: 0;
46 | width: 100%;
47 | white-space: nowrap;
48 | line-height: 60px;
49 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/enums/DistanceUnitType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.enums;
2 |
3 | public enum DistanceUnitType {
4 | ///
5 | /// 毫米
6 | ///
7 | MM(1),
8 | ///
9 | /// 厘米
10 | ///
11 | CM(2),
12 | ///
13 | /// 分米
14 | ///
15 | DM(3),
16 | ///
17 | /// 米
18 | ///
19 | M(4),
20 | ///
21 | /// 千米
22 | ///
23 | KM(5);
24 |
25 | private final int value;
26 |
27 | DistanceUnitType(int v) {
28 | value = v;
29 | }
30 |
31 | public static DistanceUnitType intToEnum(int value) {
32 | switch (value) {
33 | case 1:
34 | return MM;
35 | case 2:
36 | return CM;
37 | case 3:
38 | return DM;
39 | case 4:
40 | return M;
41 | case 5:
42 | return KM;
43 | default:
44 | return null;
45 | }
46 | }
47 |
48 | public int getValue() {
49 | return value;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/HtmlEditor/ace-ext/mirror.js:
--------------------------------------------------------------------------------
1 | ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(require,exports,module){var Range=require("../range").Range;var Document=require("../document").Document;var lang=require("../lib/lang");var Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document("");var deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this));var _self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;i
5 | /// 平方毫米
6 | ///
7 | MM2(11),
8 | ///
9 | /// 平方厘米
10 | ///
11 | CM2(12),
12 | ///
13 | /// 平方分米
14 | ///
15 | DM2(13),
16 | ///
17 | /// 平方米
18 | ///
19 | M2(14),
20 | ///
21 | /// 平方千米
22 | ///
23 | KM2(15);
24 |
25 | private final int value;
26 |
27 | AreaUnitType(int v) {
28 | value = v;
29 | }
30 |
31 | public static AreaUnitType intToEnum(int value) {
32 | switch (value) {
33 | case 11:
34 | return MM2;
35 | case 12:
36 | return CM2;
37 | case 13:
38 | return DM2;
39 | case 14:
40 | return M2;
41 | case 15:
42 | return KM2;
43 | default:
44 | return null;
45 | }
46 | }
47 |
48 | public int getValue() {
49 | return value;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/enums/VolumeUnitType.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.enums;
2 |
3 | public enum VolumeUnitType {
4 | ///
5 | /// 立方毫米
6 | ///
7 | MM3(21),
8 | ///
9 | /// 立方厘米
10 | ///
11 | CM3(22),
12 | ///
13 | /// 立方分米
14 | ///
15 | DM3(23),
16 | ///
17 | /// 立方米
18 | ///
19 | M3(24),
20 | ///
21 | /// 立方千米
22 | ///
23 | KM3(25);
24 |
25 | private final int value;
26 |
27 | VolumeUnitType(int v) {
28 | value = v;
29 | }
30 |
31 | public static VolumeUnitType intToEnum(int value) {
32 | switch (value) {
33 | case 21:
34 | return MM3;
35 | case 22:
36 | return CM3;
37 | case 23:
38 | return DM3;
39 | case 24:
40 | return M3;
41 | case 25:
42 | return KM3;
43 | default:
44 | return null;
45 | }
46 | }
47 |
48 | public int getValue() {
49 | return value;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/HtmlEditor/ace/ext-linking.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,t,n){function i(e){var n=e.editor,r=e.getAccelKey();if(r){var n=e.editor,i=e.getDocumentPosition(),s=n.session,o=s.getTokenAt(i.row,i.column);t.previousLinkingHover&&t.previousLinkingHover!=o&&n._emit("linkHoverOut"),n._emit("linkHover",{position:i,token:o}),t.previousLinkingHover=o}else t.previousLinkingHover&&(n._emit("linkHoverOut"),t.previousLinkingHover=!1)}function s(e){var t=e.getAccelKey(),n=e.getButton();if(n==0&&t){var r=e.editor,i=e.getDocumentPosition(),s=r.session,o=s.getTokenAt(i.row,i.column);r._emit("linkClick",{position:i,token:o})}}var r=e("../editor").Editor;e("../config").defineOptions(r.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",s),this.on("mousemove",i)):(this.off("click",s),this.off("mousemove",i))},value:!1}}),t.previousLinkingHover=!1}); (function() {
2 | window.require(["ace/ext/linking"], function(m) {
3 | if (typeof module == "object" && typeof exports == "object" && module) {
4 | module.exports = m;
5 | }
6 | });
7 | })();
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Evaluate.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet;
2 |
3 |
4 | public class Evaluate {
5 | public static double Polynomial(double z, double[] coefficients) {
6 | double sum = coefficients[coefficients.length - 1];
7 | for (int i = coefficients.length - 2; i >= 0; --i) {
8 | sum *= z;
9 | sum += coefficients[i];
10 | }
11 |
12 | return sum;
13 | }
14 |
15 | // public static double Series(Function f) {
16 | // double compensation = 0.0;
17 | // double current;
18 | // double factor = 1 << 16;
19 |
20 | // double sum = f.apply(0.0);
21 |
22 | // do {
23 | // // Kahan Summation
24 | // // NOTE (ruegg): do NOT optimize. Now, how to tell that the compiler?
25 | // current = f.apply(0.0);
26 | // double y = current - compensation;
27 | // double t = sum + y;
28 | // compensation = t - sum;
29 | // compensation -= y;
30 | // sum = t;
31 | // } while (Math.abs(sum) < Math.abs(factor * current));
32 |
33 | // return sum;
34 | // }
35 |
36 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.Test/AlgorithmEngine/AlgorithmEngineTest_vlookup.cs:
--------------------------------------------------------------------------------
1 | using PetaTest;
2 |
3 | namespace ToolGood.Algorithm
4 | {
5 | [TestFixture]
6 | public class AlgorithmEngineTest_vlookup
7 | {
8 | [Test]
9 | public void vlookup_test()
10 | {
11 | AlgorithmEngine engine = new AlgorithmEngine();
12 | var num = engine.TryEvaluate("vlookup(array(array(1,2,3),array(2,3,4),array(3,4,5),array(4,5,6)),3,2)", 0);
13 | Assert.AreEqual(num, 4);
14 |
15 | num = engine.TryEvaluate("vlookup(array(array(1,'2',3),array(2,3,4),array(3,'4',5),array(4,'5',6)),3,2)", 0);
16 | Assert.AreEqual(num, 4);
17 |
18 | num = engine.TryEvaluate("vlookup(array(array(1,'2',3),array(2,3,4),array(3.1,'4',5),array(4,'5',6)),3.1,2)", 0);
19 | Assert.AreEqual(num, 4);
20 |
21 | num = engine.TryEvaluate("vlookup(array(array(1,'2',3),array(2,3,4),array('3a','4',5),array(4,'5',6)),'3a',2)", 0);
22 | Assert.AreEqual(num, 4);
23 |
24 | num = engine.TryEvaluate("vlookup(array(array(1,'2',3),array(2,3,4),array(5,'4',5),array(6,'5',6)),'3',2,0)", 0);
25 | Assert.AreEqual(num, 0);
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/BaseUnitConverter.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.UnitConversion
2 | {
3 | internal abstract class BaseUnitConverter
4 | {
5 | ///
6 | /// Set Unit conversions and initial Left/Right conversion
7 | ///
8 | protected void Instantiate(UnitFactors conversionFactors, string leftUnit, string rightUnit)
9 | {
10 | units = conversionFactors;
11 |
12 | unitLeft = leftUnit;
13 | unitRight = rightUnit;
14 | }
15 |
16 | private UnitFactors units;
17 | private string unitLeft;
18 | private string unitRight;
19 |
20 | ///
21 | /// Convert the Unit on the Left to the Unit on the Right
22 | ///
23 | /// the Unit's value
24 | /// The converted value
25 | public decimal LeftToRight(decimal value)
26 | {
27 | var startFactor = units.FindFactor(unitLeft);
28 | var endFactor = units.FindFactor(unitRight);
29 | var result = (value / startFactor) * endFactor;
30 | return result;//.CheckCloseEnoughValue();
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/Internals/AntlrErrorListener.cs:
--------------------------------------------------------------------------------
1 | using Antlr4.Runtime;
2 | using System.IO;
3 |
4 | namespace ToolGood.Algorithm.Internals
5 | {
6 | ///
7 | /// 自定义ErrorListener
8 | ///
9 | sealed class AntlrErrorListener : IAntlrErrorListener
10 | {
11 | ///
12 | /// 是否出错
13 | ///
14 | public bool IsError { get; private set; }
15 |
16 | ///
17 | /// 出错信息
18 | ///
19 | public string ErrorMsg { get; private set; }
20 |
21 | ///
22 | /// 重写
23 | ///
24 | ///
25 | ///
26 | ///
27 | ///
28 | ///
29 | ///
30 | ///
31 | public void SyntaxError(TextWriter output, IRecognizer recognizer, IToken offendingSymbol, int line, int charPositionInLine, string msg, RecognitionException e)
32 | {
33 | IsError = true;
34 | ErrorMsg = msg;
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/HtmlEditor/ace/ext-statusbar.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/lang"),s=function(e,t){this.element=r.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",t.appendChild(this.element);var n=i.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on("changeStatus",n),e.on("changeSelection",n),e.on("keyboardActivity",n)};(function(){this.updateStatus=function(e){function n(e,n){e&&t.push(e,n||"|")}var t=[];n(e.keyBinding.getStatusText(e)),e.commands.recording&&n("REC");var r=e.selection,i=r.lead;if(!r.isEmpty()){var s=e.getSelectionRange();n("("+(s.end.row-s.start.row)+":"+(s.end.column-s.start.column)+")"," ")}n(i.row+":"+i.column," "),r.rangeCount&&n("["+r.rangeCount+"]"," "),t.pop(),this.element.textContent=t.join("")}}).call(s.prototype),t.StatusBar=s}); (function() {
2 | window.require(["ace/ext/statusbar"], function(m) {
3 | if (typeof module == "object" && typeof exports == "object" && module) {
4 | module.exports = m;
5 | }
6 | });
7 | })();
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/Normal.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics
4 | {
5 | internal sealed class Normal
6 | {
7 | public static double CDF(double mean, double stddev, double x)
8 | {
9 | //if (stddev < 0.0) {
10 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
11 | //}
12 |
13 | return 0.5 * SpecialFunctions.Erfc((mean - x) / (stddev * Constants.Sqrt2));
14 | }
15 |
16 | public static double InvCDF(double mean, double stddev, double p)
17 | {
18 | //if (stddev < 0.0) {
19 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
20 | //}
21 |
22 | return mean - (stddev * Constants.Sqrt2 * SpecialFunctions.ErfcInv(2.0 * p));
23 | }
24 |
25 | public static double PDF(double mean, double stddev, double x)
26 | {
27 | //if (stddev < 0.0) {
28 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
29 | //}
30 |
31 | var d = (x - mean) / stddev;
32 | return Math.Exp(-0.5 * d * d) / (Constants.Sqrt2Pi * stddev);
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/Normal.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import toolgood.algorithm.mathNet.Constants;
4 | import toolgood.algorithm.mathNet.SpecialFunctions;
5 |
6 | public class Normal {
7 | public static double CDF(double mean, double stddev, double x)
8 | {
9 | //if (stddev < 0.0) {
10 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
11 | //}
12 |
13 | return 0.5 * SpecialFunctions.Erfc((mean - x) / (stddev * Constants.Sqrt2));
14 | }
15 | public static double InvCDF(double mean, double stddev, double p)
16 | {
17 | //if (stddev < 0.0) {
18 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
19 | //}
20 |
21 | return mean - (stddev * Constants.Sqrt2 * SpecialFunctions.ErfcInv(2.0 * p));
22 | }
23 |
24 | public static double PDF(double mean, double stddev, double x)
25 | {
26 | //if (stddev < 0.0) {
27 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
28 | //}
29 |
30 | double d = (x - mean) / stddev;
31 | return Math.exp(-0.5 * d * d) / (Constants.Sqrt2Pi * stddev);
32 | }
33 |
34 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/LogNormal.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
4 | {
5 | ///
6 | /// Continuous Univariate Log-Normal distribution.
7 | /// For details about this distribution, see
8 | /// Wikipedia - Log-Normal distribution .
9 | ///
10 | internal sealed class LogNormal
11 | {
12 | public static double CDF(double mu, double sigma, double x)
13 | {
14 | //if (sigma < 0.0) {
15 | // throw new ArgumentException("InvalidDistributionParameters");
16 | //}
17 |
18 | return x < 0.0 ? 0.0
19 | : 0.5 * (1.0 + SpecialFunctions.Erf((Math.Log(x) - mu) / (sigma * Constants.Sqrt2)));
20 | }
21 |
22 | public static double InvCDF(double mu, double sigma, double p)
23 | {
24 | //if (sigma < 0.0) {
25 | // throw new ArgumentException("InvalidDistributionParameters");
26 | //}
27 |
28 | return p <= 0.0 ? 0.0 : p >= 1.0 ? double.PositiveInfinity
29 | : Math.Exp(mu - sigma * Constants.Sqrt2 * SpecialFunctions.ErfcInv(2.0 * p));
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.StaticFiles;
2 |
3 | namespace ToolGood.Algorithm2.WebTest
4 | {
5 | public class Program
6 | {
7 | public static void Main(string[] args)
8 | {
9 | var builder = WebApplication.CreateBuilder(args);
10 |
11 | // Add services to the container.
12 | builder.Services.AddRazorPages();
13 |
14 | var app = builder.Build();
15 |
16 | // Configure the HTTP request pipeline.
17 | if (!app.Environment.IsDevelopment()) {
18 | app.UseExceptionHandler("/Error");
19 | }
20 | var provider = new FileExtensionContentTypeProvider();
21 | provider.Mappings[".gz"] = "application/octet-stream";
22 | provider.Mappings[".dat"] = "application/octet-stream";
23 | provider.Mappings[".wasm"] = "application/wasm";
24 | provider.Mappings[".pdb"] = "application/pdb";
25 | app.UseStaticFiles(new StaticFileOptions {
26 | ContentTypeProvider = provider,//应用新的映射关系
27 | });
28 |
29 | app.UseRouting();
30 |
31 | app.UseAuthorization();
32 |
33 | app.MapRazorPages();
34 |
35 | app.Run();
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/unitConversion/UnitFactors.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.unitConversion;
2 |
3 | import java.math.BigDecimal;
4 | import java.util.HashMap;
5 |
6 | public class UnitFactors extends HashMap {
7 |
8 | public UnitFactorSynonyms FindUnit(String synonyms) {
9 | return FindUnit(new UnitFactorSynonyms(synonyms));
10 | }
11 |
12 | public UnitFactorSynonyms FindUnit(UnitFactorSynonyms synonyms) {
13 | for (UnitFactorSynonyms factor : this.keySet()) {
14 | if (factor.Contains(synonyms)) {
15 | return factor;
16 | }
17 | }
18 | return null;
19 | }
20 |
21 | public BigDecimal FindFactor(String synonyms) throws UnitNotSupportedException {
22 | return FindFactor(new UnitFactorSynonyms(synonyms));
23 | }
24 |
25 | // Get the factor for a given unit
26 | public BigDecimal FindFactor(UnitFactorSynonyms synonyms) throws UnitNotSupportedException {
27 | for (UnitFactorSynonyms factor : this.keySet()) {
28 | if (factor.Contains(synonyms)) {
29 | return this.get(factor);
30 | }
31 | }
32 | throw new UnitNotSupportedException(synonyms.toString());
33 | }
34 |
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/AntlrCharStream.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.internals;
2 |
3 | import org.antlr.v4.runtime.CharStream;
4 | import org.antlr.v4.runtime.misc.Interval;
5 |
6 | public class AntlrCharStream implements CharStream {
7 | final CharStream stream;
8 |
9 | public AntlrCharStream(CharStream stream) {
10 | this.stream = stream;
11 | }
12 |
13 | @Override
14 | public String getText(Interval interval) {
15 | return stream.getText(interval);
16 | }
17 |
18 | @Override
19 | public void consume() {
20 | stream.consume();
21 | }
22 |
23 | @Override
24 | public int LA(int i) {
25 | int c = stream.LA(i);
26 | if (c <= 0) {
27 | return c;
28 | }
29 | return CharUtil.StandardChar((char)c);
30 | }
31 |
32 | @Override
33 | public int mark() {
34 | return stream.mark();
35 | }
36 |
37 | @Override
38 | public void release(int marker) {
39 | stream.release(marker);
40 | }
41 |
42 | @Override
43 | public int index() {
44 | return stream.index();
45 | }
46 |
47 | @Override
48 | public void seek(int index) {
49 | stream.seek(index);
50 | }
51 |
52 | @Override
53 | public int size() {
54 | return stream.size();
55 | }
56 |
57 | @Override
58 | public String getSourceName() {
59 | return stream.getSourceName();
60 | }
61 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/Hypergeometric.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import toolgood.algorithm.mathNet.SpecialFunctions;
4 |
5 | public class Hypergeometric {
6 | ///
7 | /// Computes the probability mass (PMF) at k, i.e. P(X = k).
8 | ///
9 | /// The location in the domain where we want to evaluate the probability mass function.
10 | /// The size of the population (N).
11 | /// The number successes within the population (K, M).
12 | /// The number of draws without replacement (n).
13 | /// the probability mass at location .
14 | public static double PMF(int population, int success, int draws, int k)
15 | {
16 | //if (!(population >= 0 && success >= 0 && draws >= 0 && success <= population && draws <= population)) {
17 | // throw new ArgumentException("InvalidDistributionParameters");
18 | //}
19 |
20 | return SpecialFunctions.Binomial(success, k) * SpecialFunctions.Binomial(population - success, draws - k) / SpecialFunctions.Binomial(population, draws);
21 | }
22 |
23 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Statistics/SortedArrayStatistics.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Statistics
4 | {
5 | internal static partial class SortedArrayStatistics
6 | {
7 | public static double QuantileRank(double[] data, double x)
8 | {
9 | if (x < data[0]) {
10 | return 0.0;
11 | }
12 |
13 | if (x >= data[data.Length - 1]) {
14 | return 1.0;
15 | }
16 |
17 | int right = Array.BinarySearch(data, x);
18 | if (right >= 0) {
19 | int left = right;
20 |
21 | while (left > 0 && data[left - 1] == data[left]) {
22 | left--;
23 | }
24 |
25 | while (right < data.Length - 1 && data[right + 1] == data[right]) {
26 | right++;
27 | }
28 |
29 | return left / (double)(data.Length - 1);
30 | } else {
31 | right = ~right;
32 | int left = right - 1;
33 |
34 | var a = left / (double)(data.Length - 1);
35 | var b = right / (double)(data.Length - 1);
36 | return ((data[right] - x) * a + (x - data[left]) * b) / (data[right] - data[left]);
37 | }
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/SpecialFunctions/Evaluate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics
4 | {
5 | internal static class Evaluate
6 | {
7 | public static double Polynomial(double z, params double[] coefficients)
8 | {
9 | double sum = coefficients[coefficients.Length - 1];
10 | for (int i = coefficients.Length - 2; i >= 0; --i) {
11 | sum *= z;
12 | sum += coefficients[i];
13 | }
14 |
15 | return sum;
16 | }
17 |
18 | internal static double Series(Func nextSummand)
19 | {
20 | double compensation = 0.0;
21 | double current;
22 | const double factor = 1 << 16;
23 |
24 | double sum = nextSummand();
25 |
26 | do {
27 | // Kahan Summation
28 | // NOTE (ruegg): do NOT optimize. Now, how to tell that the compiler?
29 | current = nextSummand();
30 | double y = current - compensation;
31 | double t = sum + y;
32 | compensation = t - sum;
33 | compensation -= y;
34 | sum = t;
35 | }
36 | while (Math.Abs(sum) < Math.Abs(factor * current));
37 |
38 | return sum;
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.WebTest/wwwroot/_framework/emcc-props.json:
--------------------------------------------------------------------------------
1 | {
2 | "items": {
3 | "EmccProperties": [
4 | { "identity": "RuntimeEmccVersion", "value": "3.1.34" },
5 | { "identity": "RuntimeEmccVersionRaw", "value": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.34 (57b21b8fdcbe3ebb523178b79465254668eab408)" },
6 | { "identity": "RuntimeEmccVersionHash", "value": "57b21b8fdcbe3ebb523178b79465254668eab408" }
7 | ],
8 | "WasmOptConfigurationFlags": [
9 | { "identity": "WasmOptConfigurationFlags", "value": " " }
10 | ],
11 | "EmccDefaultExportedFunctions": ["_free","_htons","_malloc","_memalign","_memset","_ntohs","stackAlloc","stackRestore","stackSave","_fmod","_atan2","_fma","_pow","_fmodf","_atan2f","_fmaf","_powf","_asin","_asinh","_acos","_acosh","_atan","_atanh","_cbrt","_cos","_cosh","_exp","_log","_log2","_log10","_sin","_sinh","_tan","_tanh","_asinf","_asinhf","_acosf","_acoshf","_atanf","_atanhf","_cbrtf","_cosf","_coshf","_expf","_logf","_log2f","_log10f","_sinf","_sinhf","_tanf","_tanhf"],
12 | "EmccDefaultExportedRuntimeMethods": ["FS","out","err","ccall","cwrap","setValue","getValue","UTF8ToString","UTF8ArrayToString","stringToUTF8Array","FS_createPath","FS_createDataFile","removeRunDependency","addRunDependency","addFunction","safeSetTimeout","runtimeKeepalivePush","runtimeKeepalivePop","maybeExit","abort"]
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.Test/Tests/IssuesTest.cs:
--------------------------------------------------------------------------------
1 | using PetaTest;
2 | using System;
3 | using ToolGood.Algorithm;
4 |
5 | namespace ToolGood.Algorithm.Test
6 | {
7 | [TestFixture]
8 | public class IssuesTest
9 | {
10 | [Test]
11 | public void issues_12()
12 | {
13 | AlgorithmEngine engine = new AlgorithmEngine();
14 | var dt = engine.TryEvaluate("Year(44406)=2021", false);
15 | Assert.AreEqual(dt, true);
16 | dt = engine.TryEvaluate("MONTH(44406)=7", false);
17 | Assert.AreEqual(dt, true);
18 | dt = engine.TryEvaluate("DAY(44406)=29", false);
19 | Assert.AreEqual(dt, true);
20 |
21 | int num = engine.TryEvaluate("date(2011,2,2)", 0);
22 | Assert.AreEqual(num, 40576);
23 | }
24 |
25 | [Test]
26 | public void issues_13()
27 | {
28 | AlgorithmEngine engine = new AlgorithmEngine();
29 | var dt = engine.TryEvaluate("days360(date(2020,5,31),date(2023,12,15))", 0);
30 | Assert.AreEqual(dt, 1275);
31 | }
32 |
33 | [Test]
34 | public void issues_27()
35 | {
36 | AlgorithmEngine engine = new AlgorithmEngine();
37 | var dt = engine.TryEvaluate("DATE(2024, 8, 1) + TIME(8, 0, 0)", DateTime.Now);
38 | Assert.AreEqual(dt, DateTime.Parse("2024-08-01 8:0"));
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.Test/AlgorithmEngine/Cylinder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using ToolGood.Algorithm.math;
4 |
5 | namespace ToolGood.Algorithm
6 | {
7 | //定义圆柱信息
8 | public class Cylinder : AlgorithmEngineEx
9 | {
10 | private int _radius;
11 | private int _height;
12 |
13 | public Cylinder(int radius, int height)
14 | {
15 | _radius = radius;
16 | _height = height;
17 | }
18 |
19 | public override Operand GetParameter(string parameter)
20 | {
21 | if (parameter == "半径") {
22 | return Operand.Create(_radius);
23 | }
24 | if (parameter == "直径") {
25 | return Operand.Create(_radius * 2);
26 | }
27 | if (parameter == "高") {
28 | return Operand.Create(_height);
29 | }
30 | return base.GetParameter(parameter);
31 | }
32 |
33 |
34 | public override Operand ExecuteDiyFunction( string funcName, List operands)
35 | {
36 | if (funcName == "求面积") {
37 | if (operands.Count == 1) {
38 | var r = (double)operands[0].ToNumber().NumberValue;
39 | return r * r * Math.PI;
40 | }
41 | }
42 | return base.ExecuteDiyFunction( funcName, operands);
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/DistanceConverter.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.UnitConversion
2 | {
3 | internal sealed class DistanceConverter : BaseUnitConverter
4 | {
5 | private static UnitFactors units = new UnitFactors()
6 | {
7 | { new UnitFactorSynonyms("m", "metre","米"), 1 },
8 | { new UnitFactorSynonyms("km", "kilometre","千米"), 0.001m },
9 | { new UnitFactorSynonyms("dm","decimetre", "分米"), 10 },
10 | { new UnitFactorSynonyms("cm", "centimetre", "厘米"), 100 },
11 | { new UnitFactorSynonyms("mm", "millimetre", "毫米"), 1000 },
12 | { new UnitFactorSynonyms("ft", "foot", "feet","英尺"), 1250m / 381 },
13 | { new UnitFactorSynonyms("yd", "yard","码"), 1250m / 1143 },
14 | { new UnitFactorSynonyms("mile","英里"), 125m / 201168 },
15 | { new UnitFactorSynonyms("in", "inch","英寸"), 5000m / 127 },
16 | { "au", 1m / 149600000000}
17 | };
18 |
19 | public DistanceConverter(string leftUnit, string rightUnit)
20 | {
21 | Instantiate(units, leftUnit, rightUnit);
22 | }
23 |
24 | public static bool Exists(string leftSynonym, string rightSynonym)
25 | {
26 | if (units.FindUnit(leftSynonym) != null) {
27 | return units.FindUnit(rightSynonym) != null;
28 | }
29 | return false;
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/MassConverter.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.UnitConversion
2 | {
3 | internal sealed class MassConverter : BaseUnitConverter
4 | {
5 | private static UnitFactors units = new UnitFactors()
6 | {
7 | { new UnitFactorSynonyms("kg", "kilogram","千克"), 1 },
8 | { new UnitFactorSynonyms("gram", "g","克"), 1000 },
9 | { new UnitFactorSynonyms("ton", "t", "吨"), 1M/1000 },
10 | { new UnitFactorSynonyms("lb", "lbs", "pound", "pounds","英镑"), 100000000m / 45359237 },
11 | { new UnitFactorSynonyms("st", "stone","石"), 50000000m / 317514659 },
12 | { new UnitFactorSynonyms("oz", "ounce","盎司"), 1600000000m / 45359237 },
13 | { new UnitFactorSynonyms("quintal","英担"), 0.01m },
14 | { new UnitFactorSynonyms("short ton", "net ton", "us ton","短吨","美吨"), 0.00110231m },
15 | { new UnitFactorSynonyms("long ton", "weight ton", "gross ton", "imperial ton","长吨","英吨"), 0.000984207m },
16 | };
17 |
18 | public MassConverter(string leftUnit, string rightUnit)
19 | {
20 | Instantiate(units, leftUnit, rightUnit);
21 | }
22 |
23 | public static bool Exists(string leftSynonym, string rightSynonym)
24 | {
25 | if (units.FindUnit(leftSynonym) != null) {
26 | return units.FindUnit(rightSynonym) != null;
27 | }
28 | return false;
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/test/java/toolgood/algorithm/Tests/Cylinder.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.Tests;
2 |
3 | import java.util.List;
4 |
5 | import toolgood.algorithm.AlgorithmEngine;
6 | import toolgood.algorithm.Operand;
7 | import toolgood.algorithm.internals.MyParameter;
8 |
9 | public class Cylinder extends AlgorithmEngine {
10 | private int _radius;
11 | private int _height;
12 |
13 | public Cylinder(int radius, int height) {
14 | _radius = radius;
15 | _height = height;
16 | }
17 |
18 | @Override
19 | protected Operand GetParameter(MyParameter parameter) {
20 | if (parameter.Name.equals("半径")) {
21 | return Operand.Create(_radius);
22 | }
23 | if (parameter.Name.equals("直径"))
24 | {
25 | return Operand.Create(_radius * 2);
26 | }
27 | if (parameter.Name.equals("高"))
28 | {
29 | return Operand.Create(_height);
30 | }
31 | return super.GetParameter(parameter);
32 | }
33 |
34 | @Override
35 | protected Operand ExecuteDiyFunction(String funcName, List operands)
36 | {
37 | if (funcName.equals("求面积"))
38 | {
39 | if (operands.size() == 1)
40 | {
41 | int r =(int) operands.get(0).ToNumber(null).NumberValue().intValue();
42 | return Operand.Create(r * r * Math.PI);
43 | }
44 | }
45 | return super.ExecuteDiyFunction(funcName, operands);
46 | }
47 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/UnitFactorSynonyms.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | #if WebAssembly
4 | using System.Linq2;
5 | #else
6 | using System.Linq;
7 | #endif
8 |
9 | namespace ToolGood.Algorithm.UnitConversion
10 | {
11 | internal sealed class UnitFactorSynonyms
12 | {
13 | public UnitFactorSynonyms(params string[] items)
14 | {
15 | _synonyms.AddRange(items);
16 | }
17 |
18 | private List _synonyms = new List();
19 |
20 | // Find if some synonym of a given UnitFactor is included in this UnitFactor
21 | internal bool Contains(UnitFactorSynonyms synonyms)
22 | {
23 | foreach (var syn in synonyms._synonyms) {
24 | if (this.Contains(syn)) {
25 | return true;
26 | }
27 | }
28 | return false;
29 | }
30 |
31 | // Find if some synonym is included in this UnitFactor
32 | internal bool Contains(string synonym)
33 | {
34 | return _synonyms.Contains(synonym, StringComparer.CurrentCultureIgnoreCase);
35 | }
36 |
37 | public override string ToString()
38 | {
39 | return string.Join(", ", _synonyms);
40 | }
41 |
42 | // Allow strings to be interpreted as a UnitDictionaryKey
43 | public static implicit operator UnitFactorSynonyms(string synonym)
44 | {
45 | return new UnitFactorSynonyms(synonym);
46 | }
47 | }
48 | }
--------------------------------------------------------------------------------
/HtmlEditor/ace/ext-spellcheck.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/spellcheck",["require","exports","module","ace/lib/event","ace/editor","ace/config"],function(e,t,n){"use strict";var r=e("../lib/event");t.contextMenuHandler=function(e){var t=e.target,n=t.textInput.getElement();if(!t.selection.isEmpty())return;var i=t.getCursorPosition(),s=t.session.getWordRange(i.row,i.column),o=t.session.getTextRange(s);t.session.tokenRe.lastIndex=0;if(!t.session.tokenRe.test(o))return;var u="\x01\x01",a=o+" "+u;n.value=a,n.setSelectionRange(o.length,o.length+1),n.setSelectionRange(0,0),n.setSelectionRange(0,o.length);var f=!1;r.addListener(n,"keydown",function l(){r.removeListener(n,"keydown",l),f=!0}),t.textInput.setInputHandler(function(e){if(e==a)return"";if(e.lastIndexOf(a,0)===0)return e.slice(a.length);if(e.substr(n.selectionEnd)==a)return e.slice(0,-a.length);if(e.slice(-2)==u){var r=e.slice(0,-2);if(r.slice(-1)==" ")return f?r.substring(0,n.selectionEnd):(r=r.slice(0,-1),t.session.replace(s,r),"")}return e})};var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{spellcheck:{set:function(e){var n=this.textInput.getElement();n.spellcheck=!!e,e?this.on("nativecontextmenu",t.contextMenuHandler):this.removeListener("nativecontextmenu",t.contextMenuHandler)},value:!0}})}); (function() {
2 | window.require(["ace/ext/spellcheck"], function(m) {
3 | if (typeof module == "object" && typeof exports == "object" && module) {
4 | module.exports = m;
5 | }
6 | });
7 | })();
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/test/java/toolgood/algorithm/Tests/IssuesTest.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.Tests;
2 |
3 | import static org.junit.Assert.assertEquals;
4 |
5 | import org.junit.Test;
6 |
7 | import toolgood.algorithm.AlgorithmEngine;
8 | import toolgood.algorithm.MyDate;
9 |
10 | public class IssuesTest {
11 |
12 | @Test
13 | public void issues_12() {
14 | AlgorithmEngine engine = new AlgorithmEngine();
15 | boolean dt = engine.TryEvaluate("Year(44406)=2021", false);
16 | assertEquals(dt, true);
17 | dt = engine.TryEvaluate("MONTH(44406)=7", false);
18 | assertEquals(dt, true);
19 | dt = engine.TryEvaluate("DAY(44406)=29", false);
20 | assertEquals(dt, true);
21 |
22 | int num = engine.TryEvaluate("date(2011,2,2)", 0);
23 | assertEquals(num, 40576);
24 | }
25 |
26 | public void issues_13() {
27 | AlgorithmEngine engine = new AlgorithmEngine();
28 | int dt = engine.TryEvaluate("days360(date(2020,5,31),date(2023,12,15))", 0);
29 | assertEquals(dt, 1275);
30 |
31 | }
32 |
33 | @Test
34 | public void issues_27()
35 | {
36 | AlgorithmEngine engine = new AlgorithmEngine();
37 | MyDate dt = engine.TryEvaluate("DATE(2024, 8, 1) + TIME(8, 0, 0)", MyDate.now());
38 | assertEquals(dt.toString(), "2024-08-01 08:00:00");
39 |
40 | MyDate dt2 = engine.TryEvaluate("DATE(2024, 8, 1, 16,0,0) - TIME(8, 0, 0)", MyDate.now());
41 | assertEquals(dt2.toString(), "2024-08-01 08:00:00");
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/HtmlEditor/ace/ext-themelist.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/themelist",["require","exports","module"],function(e,t,n){"use strict";var r=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Nord Dark","nord_dark","dark"],["One Dark","one_dark","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:e[2]=="dark",name:n};return t.themesByName[n]=r,r})}); (function() {
2 | window.require(["ace/ext/themelist"], function(m) {
3 | if (typeof module == "object" && typeof exports == "object" && module) {
4 | module.exports = m;
5 | }
6 | });
7 | })();
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Statistics/SortedArrayStatistics.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Statistics;
2 |
3 | public class SortedArrayStatistics {
4 | public static double QuantileRank(double[] data, double x) {
5 | if (x < data[0]) {
6 | return 0.0;
7 | }
8 |
9 | if (x >= data[data.length - 1]) {
10 | return 1.0;
11 | }
12 |
13 | int right = binarySearch(data, x);
14 | if (right >= 0) {
15 | int left = right;
16 |
17 | while (left > 0 && data[left - 1] == data[left]) {
18 | left--;
19 | }
20 |
21 | while (right < data.length - 1 && data[right + 1] == data[right]) {
22 | right++;
23 | }
24 |
25 | return left / (double) (data.length - 1);
26 |
27 | } else {
28 | right = ~right;
29 | int left = right - 1;
30 |
31 | double a = left / (double) (data.length - 1);
32 | double b = right / (double) (data.length - 1);
33 | return ((data[right] - x) * a + (x - data[left]) * b) / (data[right] - data[left]);
34 | }
35 | }
36 | private static int binarySearch(double[] array, double key) {
37 | int low = 0;
38 | int high = array.length - 1;
39 | while (low <= high) {
40 | int mid = (low + high) >>> 1;
41 | if (key < array[mid]) {
42 | high = mid - 1;
43 | } else if (key > array[mid]) {
44 | low = mid + 1;
45 | } else {
46 | return mid;
47 | }
48 | }
49 | return -1;
50 | }
51 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/Exponential.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | public class Exponential {
4 | ///
5 | /// Computes the probability density of the distribution (PDF) at x, i.e. ∂P(X ≤ x)/∂x.
6 | ///
7 | /// The rate (λ) parameter of the distribution. Range: λ ≥ 0.
8 | /// The location at which to compute the density.
9 | /// the density at .
10 | /////
11 | public static double PDF(double rate, double x)
12 | {
13 | //if (rate < 0.0) {
14 | // throw new ArgumentException("InvalidDistributionParameters");
15 | //}
16 |
17 | return x < 0.0 ? 0.0 : rate * Math.exp(-rate * x);
18 | }
19 |
20 | ///
21 | /// Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
22 | ///
23 | /// The location at which to compute the cumulative distribution function.
24 | /// The rate (λ) parameter of the distribution. Range: λ ≥ 0.
25 | /// the cumulative distribution at location .
26 | /////
27 | public static double CDF(double rate, double x)
28 | {
29 | //if (rate < 0.0) {
30 | // throw new ArgumentException("InvalidDistributionParameters");
31 | //}
32 |
33 | return x < 0.0 ? 0.0 : 1.0 - Math.exp(-rate * x);
34 | }
35 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/Hypergeometric.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
2 | {
3 | ///
4 | /// Discrete Univariate Hypergeometric distribution.
5 | /// This distribution is a discrete probability distribution that describes the number of successes in a sequence
6 | /// of n draws from a finite population without replacement, just as the binomial distribution
7 | /// describes the number of successes for draws with replacement
8 | /// Wikipedia - Hypergeometric distribution .
9 | ///
10 | sealed class Hypergeometric
11 | {
12 | ///
13 | /// Computes the probability mass (PMF) at k, i.e. P(X = k).
14 | ///
15 | /// The location in the domain where we want to evaluate the probability mass function.
16 | /// The size of the population (N).
17 | /// The number successes within the population (K, M).
18 | /// The number of draws without replacement (n).
19 | /// the probability mass at location .
20 | public static double PMF(int population, int success, int draws, int k)
21 | {
22 | //if (!(population >= 0 && success >= 0 && draws >= 0 && success <= population && draws <= population)) {
23 | // throw new ArgumentException("InvalidDistributionParameters");
24 | //}
25 |
26 | return SpecialFunctions.Binomial(success, k) * SpecialFunctions.Binomial(population - success, draws - k) / SpecialFunctions.Binomial(population, draws);
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/StudentT.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import java.util.function.Function;
4 |
5 | import toolgood.algorithm.mathNet.SpecialFunctions;
6 | import toolgood.algorithm.mathNet.RootFinding.Brent;
7 |
8 | public class StudentT {
9 | public static double CDF(double location, double scale, double freedom, double x)
10 | {
11 | //if (scale <= 0.0 || freedom <= 0.0) {
12 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
13 | //}
14 |
15 | if (Double.isInfinite(freedom)) {
16 | return Normal.CDF(location, scale, x);
17 | }
18 |
19 | double k = (x - location) / scale;
20 | double h = freedom / (freedom + (k * k));
21 | double ib = 0.5 * SpecialFunctions.BetaRegularized(freedom / 2.0, 0.5, h);
22 | return x <= location ? ib : 1.0 - ib;
23 | }
24 | public static double InvCDF(double location, double scale, double freedom, double p) throws Exception
25 | {
26 | //if (scale <= 0.0 || freedom <= 0.0) {
27 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
28 | //}
29 |
30 | if (Double.isInfinite(freedom)) {
31 | return Normal.InvCDF(location, scale, p);
32 | }
33 |
34 | if (p == 0.5d) {
35 | return location;
36 | }
37 | Function f=x->{
38 | double k = (x - location) / scale;
39 | double h = freedom / (freedom + (k * k));
40 | double ib = 0.5 * SpecialFunctions.BetaRegularized(freedom / 2.0, 0.5, h);
41 | return x <= location ? ib - p : 1.0 - ib - p;
42 | };
43 |
44 | return Brent.FindRoot(f, -800, 800, 1e-12);
45 | }
46 |
47 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/unitConversion/MassConverter.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.unitConversion;
2 |
3 |
4 |
5 | import java.math.BigDecimal;
6 |
7 | public class MassConverter extends BaseUnitConverter {
8 |
9 | static UnitFactors units;
10 |
11 | static {
12 | units = new UnitFactors();
13 | units.put(new UnitFactorSynonyms(new String[]{"kg", "kilogram", "千克"}), new BigDecimal("1"));
14 | units.put(new UnitFactorSynonyms(new String[]{"gram", "g", "克"}), new BigDecimal("1000"));
15 | units.put(new UnitFactorSynonyms(new String[]{"ton", "t", "吨"}), BigDecimal.valueOf(1 / 1000d));
16 | units.put(new UnitFactorSynonyms(new String[]{"lb", "lbs", "pound", "pounds", "英镑"}), BigDecimal.valueOf(100000000d / 45359237));
17 | units.put(new UnitFactorSynonyms(new String[]{"st", "stone", "石"}), BigDecimal.valueOf(50000000d / 317514659));
18 | units.put(new UnitFactorSynonyms(new String[]{"oz", "ounce", "盎司"}), BigDecimal.valueOf(1600000000d / 45359237));
19 | units.put(new UnitFactorSynonyms(new String[]{"quintal", "英担"}), new BigDecimal("0.01"));
20 | units.put(new UnitFactorSynonyms(new String[]{"short ton", "net ton", "us ton", "短吨", "美吨"}), new BigDecimal("0.00110231"));
21 | units.put(new UnitFactorSynonyms(new String[]{"long ton", "weight ton", "gross ton", "imperial ton", "长吨", "英吨"}), new BigDecimal("0.000984207"));
22 |
23 |
24 | }
25 |
26 | public MassConverter(String leftUnit, String rightUnit) {
27 | Instantiate(units, leftUnit, rightUnit);
28 | }
29 |
30 | public static Boolean Exists(String leftSynonym, String rightSynonym) {
31 | if (units.FindUnit(leftSynonym) != null) {
32 | return units.FindUnit(rightSynonym) != null;
33 | }
34 | return false;
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/Poisson.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import toolgood.algorithm.mathNet.SpecialFunctions;
4 |
5 | public class Poisson {
6 | ///
7 | /// Computes the probability mass (PMF) at k, i.e. P(X = k).
8 | ///
9 | /// The location in the domain where we want to evaluate the probability mass function.
10 | /// The lambda (λ) parameter of the Poisson distribution. Range: λ > 0.
11 | /// the probability mass at location .
12 | public static double PMF(double lambda, int k)
13 | {
14 | //if (!(lambda > 0.0)) {
15 | // throw new ArgumentException("InvalidDistributionParameters");
16 | //}
17 |
18 | return Math.exp(-lambda + (k * Math.log(lambda)) - SpecialFunctions.FactorialLn(k));
19 | }
20 |
21 | ///
22 | /// Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
23 | ///
24 | /// The location at which to compute the cumulative distribution function.
25 | /// The lambda (λ) parameter of the Poisson distribution. Range: λ > 0.
26 | /// the cumulative distribution at location .
27 | /////
28 | public static double CDF(double lambda, double x)
29 | {
30 | //if (!(lambda > 0.0)) {
31 | // throw new ArgumentException("InvalidDistributionParameters");
32 | //}
33 |
34 | return 1.0 - SpecialFunctions.GammaLowerRegularized(x + 1, lambda);
35 | }
36 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Statistics/Factorial.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics
4 | {
5 | internal partial class SpecialFunctions
6 | {
7 | private static double[] _factorialCache;
8 |
9 | ///
10 | /// Initializes static members of the SpecialFunctions class.
11 | ///
12 | static SpecialFunctions()
13 | {
14 | InitializeFactorial();
15 | }
16 |
17 | private static void InitializeFactorial()
18 | {
19 | _factorialCache = new double[171];
20 | _factorialCache[0] = 1.0;
21 | for (int i = 1; i < _factorialCache.Length; i++) {
22 | _factorialCache[i] = _factorialCache[i - 1] * i;
23 | }
24 | }
25 |
26 | public static double Binomial(int n, int k)
27 | {
28 | if (k < 0 || n < 0 || k > n) {
29 | return 0.0;
30 | }
31 |
32 | return Math.Floor(0.5 + Math.Exp(FactorialLn(n) - FactorialLn(k) - FactorialLn(n - k)));
33 | }
34 |
35 | public static double FactorialLn(int x)
36 | {
37 | //if (x < 0) {
38 | // throw new ArgumentOutOfRangeException("x", "ArgumentPositive");
39 | //}
40 |
41 | if (x <= 1) {
42 | return 0d;
43 | }
44 |
45 | if (x < _factorialCache.Length) {
46 | return Math.Log(_factorialCache[x]);
47 | }
48 |
49 | return GammaLn(x + 1.0);
50 | }
51 |
52 | public static double BinomialLn(int n, int k)
53 | {
54 | if (k < 0 || n < 0 || k > n) {
55 | return double.NegativeInfinity;
56 | }
57 |
58 | return FactorialLn(n) - FactorialLn(k) - FactorialLn(n - k);
59 | }
60 | }
61 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/unitConversion/DistanceConverter.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.unitConversion;
2 |
3 |
4 | import java.math.BigDecimal;
5 |
6 | public class DistanceConverter extends BaseUnitConverter {
7 | static UnitFactors units;
8 |
9 | static {
10 | units = new UnitFactors();
11 | units.put(new UnitFactorSynonyms(new String[]{"m", "metre", "meter", "米"}), new BigDecimal("1"));
12 | units.put(new UnitFactorSynonyms(new String[]{"km", "kilometre", "kilometer", "千米"}), new BigDecimal("0.001"));
13 | units.put(new UnitFactorSynonyms(new String[]{"dm", "decimetre", "decimeter", "分米"}), new BigDecimal("10"));
14 | units.put(new UnitFactorSynonyms(new String[]{"cm", "centimetre", "centimeter", "厘米"}), new BigDecimal("100"));
15 | units.put(new UnitFactorSynonyms(new String[]{"mm", "millimetre", "millimeter", "毫米"}), new BigDecimal("1000"));
16 | units.put(new UnitFactorSynonyms(new String[]{"ft", "foot", "feet", "英尺"}), BigDecimal.valueOf(1250d / 381));
17 | units.put(new UnitFactorSynonyms(new String[]{"yd", "yard", "码"}), BigDecimal.valueOf(1250d / 1143));
18 | units.put(new UnitFactorSynonyms(new String[]{"mile", "英里"}), BigDecimal.valueOf(125d / 201168));
19 | units.put(new UnitFactorSynonyms(new String[]{"in", "inch", "英寸"}), BigDecimal.valueOf(5000d / 127));
20 | units.put(new UnitFactorSynonyms(new String[]{"au"}), BigDecimal.valueOf(1d / 149600000000d));
21 | }
22 |
23 | public DistanceConverter(String leftUnit, String rightUnit) {
24 | Instantiate(units, leftUnit, rightUnit);
25 | }
26 |
27 | public static Boolean Exists(String leftSynonym, String rightSynonym) {
28 | if (units.FindUnit(leftSynonym) != null) {
29 | return units.FindUnit(rightSynonym) != null;
30 | }
31 | return false;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/DiyNameInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace ToolGood.Algorithm
5 | {
6 | ///
7 | /// 自定义类型
8 | ///
9 | public sealed class DiyNameInfo
10 | {
11 | ///
12 | /// 自定义 参数
13 | ///
14 | public List Parameters { get; private set; }
15 |
16 | ///
17 | /// 自定义方法
18 | ///
19 | public List Functions { get; private set; }
20 |
21 | ///
22 | /// 自定义类型
23 | ///
24 | public DiyNameInfo()
25 | {
26 | Parameters = new List();
27 | Functions = new List();
28 | }
29 | }
30 |
31 | ///
32 | /// 参数信息
33 | ///
34 | public sealed class ParameterInfo
35 | {
36 | ///
37 | ///
38 | ///
39 | ///
40 | ///
41 | ///
42 | public ParameterInfo(string name, int start, int end)
43 | {
44 | Name = name;
45 | Start = start;
46 | End = end;
47 | }
48 |
49 | ///
50 | /// 名称
51 | ///
52 | public string Name { get; set; }
53 |
54 | ///
55 | /// 开始位置
56 | ///
57 | public int Start { get; set; }
58 |
59 | ///
60 | /// 结束位置
61 | ///
62 | public int End { get; set; }
63 |
64 | ///
65 | /// 重写
66 | ///
67 | ///
68 | public override string ToString()
69 | {
70 | return Name;
71 | }
72 | }
73 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/AreaConverter.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.UnitConversion
2 | {
3 | internal sealed class AreaConverter : BaseUnitConverter
4 | {
5 | private static UnitFactors units = new UnitFactors()
6 | {
7 | { new UnitFactorSynonyms("m²", "m2", "square metre","square meter", "centiare","平方米","平方公尺"), 1 },
8 | { new UnitFactorSynonyms("km²", "km2", "square kilometre","square kilometer","平方千米"), 0.000001m },
9 | { new UnitFactorSynonyms("dm²", "dm2", "square decimetre","square decimeter","平方分米"), 100 },
10 | { new UnitFactorSynonyms("cm²", "cm2", "square centimetre","square centimeter","平方厘米"), 10000 },
11 | { new UnitFactorSynonyms("mm²", "mm2", "square millimetre", "square millimeter","平方毫米"), 1000000 },
12 | { new UnitFactorSynonyms("ft²", "ft2", "square foot", "square feet", "sq ft","平方英尺"), 1m / 0.3048m / 0.3048m },
13 | { new UnitFactorSynonyms("yd²", "yd2", "sq yd", "square yard","平方码"), 1m / 0.9144m / 0.9144m},
14 | { new UnitFactorSynonyms("a", "are"), 0.01m },
15 | { new UnitFactorSynonyms("ha", "hectare","公顷"), 0.0001m },
16 | { new UnitFactorSynonyms("in²", "in2", "sq in", "square inch","平方英寸"), 1m / 0.00064516m },
17 | { new UnitFactorSynonyms("mi²", "mi2", "sq mi", "square mile","平方英里"), 1m / 2589988.110336m },
18 | { new UnitFactorSynonyms( "亩"), 1m / 666.667m },
19 | };
20 |
21 | public AreaConverter(string leftUnit, string rightUnit)
22 | {
23 | Instantiate(units, leftUnit, rightUnit);
24 | }
25 |
26 | public static bool Exists(string leftSynonym, string rightSynonym)
27 | {
28 | if (units.FindUnit(leftSynonym) != null) {
29 | return units.FindUnit(rightSynonym) != null;
30 | }
31 | return false;
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/HtmlEditor/ace/ext-hardwrap.js:
--------------------------------------------------------------------------------
1 | define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,t,n){"use strict";function i(e,t){function m(e,t,n){if(e.lengthn)return{start:o.index,end:o.index+o[2].length};if(s&&s[2])return u=t+s[2].length,{start:u,end:u+s[3].length}}var n=t.column||e.getOption("printMarginColumn"),i=t.allowMerge!=0,s=Math.min(t.startRow,t.endRow),o=Math.max(t.startRow,t.endRow),u=e.session;while(s<=o){var a=u.getLine(s);if(a.length>n){var f=m(a,n,5);if(f){var l=/^\s*/.exec(a)[0];u.replace(new r(s,f.start,s,f.end),"\n"+l)}o++}else if(i&&/\S/.test(a)&&s!=o){var c=u.getLine(s+1);if(c&&/\S/.test(c)){var h=a.replace(/\s+$/,""),p=c.replace(/^\s+/,""),d=h+" "+p,f=m(d,n,5);if(f&&f.start>h.length||d.length
2 |
3 |
4 | net10.0
5 | enable
6 |
7 |
8 |
9 |
10 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/Beta.cs:
--------------------------------------------------------------------------------
1 | using ToolGood.Algorithm.MathNet.Numerics.RootFinding;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
4 | {
5 | internal sealed class Beta
6 | {
7 | public static double CDF(double a, double b, double x)
8 | {
9 | //if (a < 0.0 || b < 0.0) {
10 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
11 | //}
12 |
13 | if (x < 0.0) {
14 | return 0.0;
15 | }
16 |
17 | if (x >= 1.0) {
18 | return 1.0;
19 | }
20 |
21 | if (double.IsPositiveInfinity(a) && double.IsPositiveInfinity(b)) {
22 | return x < 0.5 ? 0.0 : 1.0;
23 | }
24 |
25 | if (double.IsPositiveInfinity(a)) {
26 | return x < 1.0 ? 0.0 : 1.0;
27 | }
28 |
29 | if (double.IsPositiveInfinity(b)) {
30 | return x >= 0.0 ? 1.0 : 0.0;
31 | }
32 |
33 | if (a == 0.0 && b == 0.0) {
34 | if (x >= 0.0 && x < 1.0) {
35 | return 0.5;
36 | }
37 |
38 | return 1.0;
39 | }
40 |
41 | if (a == 0.0) {
42 | return 1.0;
43 | }
44 |
45 | if (b == 0.0) {
46 | return x >= 1.0 ? 1.0 : 0.0;
47 | }
48 |
49 | if (a == 1.0 && b == 1.0) {
50 | return x;
51 | }
52 |
53 | return SpecialFunctions.BetaRegularized(a, b, x);
54 | }
55 |
56 | public static double InvCDF(double a, double b, double p)
57 | {
58 | //if (a < 0.0 || b < 0.0 || p < 0.0 || p > 1.0) {
59 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
60 | //}
61 |
62 | return Brent.FindRoot(x => SpecialFunctions.BetaRegularized(a, b, x) - p, 0.0, 1.0, accuracy: 1e-12);
63 | }
64 | }
65 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/NegativeBinomial.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import toolgood.algorithm.mathNet.SpecialFunctions;
4 |
5 | public class NegativeBinomial {
6 | ///
7 | /// Computes the probability mass (PMF) at k, i.e. P(X = k).
8 | ///
9 | /// The location in the domain where we want to evaluate the probability mass function.
10 | /// The number of failures (r) until the experiment stopped. Range: r ≥ 0.
11 | /// The probability (p) of a trial resulting in success. Range: 0 ≤ p ≤ 1.
12 | /// the probability mass at location .
13 | public static double PMF(double r, double p, int k)
14 | {
15 | return Math.exp(PMFLn(r, p, k));
16 | }
17 |
18 | ///
19 | /// Computes the log probability mass (lnPMF) at k, i.e. ln(P(X = k)).
20 | ///
21 | /// The location in the domain where we want to evaluate the log probability mass function.
22 | /// The number of failures (r) until the experiment stopped. Range: r ≥ 0.
23 | /// The probability (p) of a trial resulting in success. Range: 0 ≤ p ≤ 1.
24 | /// the log probability mass at location .
25 | public static double PMFLn(double r, double p, int k)
26 | {
27 | //if (!(r >= 0.0 && p >= 0.0 && p <= 1.0)) {
28 | // throw new ArgumentException("InvalidDistributionParameters");
29 | //}
30 |
31 | return SpecialFunctions.GammaLn(r + k)
32 | - SpecialFunctions.GammaLn(r)
33 | - SpecialFunctions.GammaLn(k + 1.0)
34 | + (r * Math.log(p))
35 | + (k * Math.log(1.0 - p));
36 | }
37 |
38 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Distributions/Beta.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Distributions;
2 |
3 | import java.util.function.Function;
4 |
5 | import toolgood.algorithm.mathNet.SpecialFunctions;
6 | import toolgood.algorithm.mathNet.RootFinding.Brent;
7 |
8 | public class Beta {
9 |
10 | public static double CDF(double a, double b, double x)
11 | {
12 | //if (a < 0.0 || b < 0.0) {
13 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
14 | //}
15 |
16 | if (x < 0.0) {
17 | return 0.0;
18 | }
19 |
20 | if (x >= 1.0) {
21 | return 1.0;
22 | }
23 |
24 | if (Double.isInfinite(a) && Double.isInfinite(b)) {
25 | return x < 0.5 ? 0.0 : 1.0;
26 | }
27 |
28 | if (Double.isInfinite(a)) {
29 | return x < 1.0 ? 0.0 : 1.0;
30 | }
31 |
32 | if (Double.isInfinite(b)) {
33 | return x >= 0.0 ? 1.0 : 0.0;
34 | }
35 |
36 | if (a == 0.0 && b == 0.0) {
37 | if (x >= 0.0 && x < 1.0) {
38 | return 0.5;
39 | }
40 |
41 | return 1.0;
42 | }
43 |
44 | if (a == 0.0) {
45 | return 1.0;
46 | }
47 |
48 | if (b == 0.0) {
49 | return x >= 1.0 ? 1.0 : 0.0;
50 | }
51 |
52 | if (a == 1.0 && b == 1.0) {
53 | return x;
54 | }
55 |
56 | return SpecialFunctions.BetaRegularized(a, b, x);
57 | }
58 |
59 | public static double InvCDF(double a, double b, double p) throws Exception
60 | {
61 |
62 | //if (a < 0.0 || b < 0.0 || p < 0.0 || p > 1.0) {
63 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
64 | //}
65 | Function f= x->{
66 | return SpecialFunctions.BetaRegularized(a, b, x) - p;
67 | };
68 |
69 | return Brent.FindRoot(f, 0.0, 1.0, 1e-12);
70 | }
71 |
72 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/UnitConversion/VolumeConverter.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.UnitConversion
2 | {
3 | internal sealed class VolumeConverter : BaseUnitConverter
4 | {
5 | private static UnitFactors units = new UnitFactors()
6 | {
7 | { new UnitFactorSynonyms("l", "L", "lt", "ltr", "liter", "litre", "dm³", "dm3", "cubic decimetre", "cubic decimeter","升","立方分米"), 1 },
8 | { new UnitFactorSynonyms("m³", "m3", "cubic metre","cubic meter", "立方米"), 0.001m },
9 | { new UnitFactorSynonyms("km³", "km3", "cubic kilometre","cubic kilometer", "立方千米"), 0.001m* 0.001m* 0.001m* 0.001m },
10 | { new UnitFactorSynonyms("cm³", "cm3", "cubic centimetre","cubic centimeter","立方厘米","毫升"), 1000 },
11 | { new UnitFactorSynonyms("mm³", "mm3", "cubic millimetre","cubic millimeter", "立方毫米"), 1000000 },
12 | { new UnitFactorSynonyms("ft³", "ft3", "cubic foot", "cubic feet", "cu ft","立方英尺"), 0.0353147m },
13 | { new UnitFactorSynonyms("in³", "in3", "cu in", "cubic inch","立方英寸"), 61.0237m },
14 | { new UnitFactorSynonyms("imperial pint", "imperial pt", "imperial p"), 1.75975m },
15 | { new UnitFactorSynonyms("imperial gallon", "imperial gal"), 0.219969m },
16 | { new UnitFactorSynonyms("imperial quart", "imperial qt"), 0.879877m },
17 | { new UnitFactorSynonyms("US pint", "US pt", "US p"), 2.11337643513819m },
18 | { new UnitFactorSynonyms("US gallon", "US gal"), 0.264172m },
19 | { new UnitFactorSynonyms("US quart", "US qt"), 2.11338m },
20 | };
21 |
22 | public VolumeConverter(string leftUnit, string rightUnit)
23 | {
24 | Instantiate(units, leftUnit, rightUnit);
25 | }
26 |
27 | public static bool Exists(string leftSynonym, string rightSynonym)
28 | {
29 | if (units.FindUnit(leftSynonym) != null) {
30 | return units.FindUnit(rightSynonym) != null;
31 | }
32 | return false;
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/StudentT.cs:
--------------------------------------------------------------------------------
1 | using ToolGood.Algorithm.MathNet.Numerics.RootFinding;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
4 | {
5 | internal sealed class StudentT
6 | {
7 | public static double CDF(double location, double scale, double freedom, double x)
8 | {
9 | //if (scale <= 0.0 || freedom <= 0.0) {
10 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
11 | //}
12 |
13 | // TODO JVG we can probably do a better job for Cauchy special case
14 | if (double.IsPositiveInfinity(freedom)) {
15 | return Normal.CDF(location, scale, x);
16 | }
17 |
18 | var k = (x - location) / scale;
19 | var h = freedom / (freedom + (k * k));
20 | var ib = 0.5 * SpecialFunctions.BetaRegularized(freedom / 2.0, 0.5, h);
21 | return x <= location ? ib : 1.0 - ib;
22 | }
23 |
24 | public static double InvCDF(double location, double scale, double freedom, double p)
25 | {
26 | //if (scale <= 0.0 || freedom <= 0.0) {
27 | // throw new ArgumentException(Resources.InvalidDistributionParameters);
28 | //}
29 |
30 | // TODO JVG we can probably do a better job for Cauchy special case
31 | if (double.IsPositiveInfinity(freedom)) {
32 | return Normal.InvCDF(location, scale, p);
33 | }
34 |
35 | if (p == 0.5d) {
36 | return location;
37 | }
38 |
39 | // TODO PERF: We must implement this explicitly instead of solving for CDF^-1
40 | return Brent.FindRoot(x => {
41 | var k = (x - location) / scale;
42 | var h = freedom / (freedom + (k * k));
43 | var ib = 0.5 * SpecialFunctions.BetaRegularized(freedom / 2.0, 0.5, h);
44 | return x <= location ? ib - p : 1.0 - ib - p;
45 | }, -800, 800, accuracy: 1e-12);
46 | }
47 | }
48 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/Exponential.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
4 | {
5 | ///
6 | /// Continuous Univariate Exponential distribution.
7 | /// The exponential distribution is a distribution over the real numbers parameterized by one non-negative parameter.
8 | /// Wikipedia - exponential distribution .
9 | ///
10 | sealed class Exponential
11 | {
12 | ///
13 | /// Computes the probability density of the distribution (PDF) at x, i.e. ∂P(X ≤ x)/∂x.
14 | ///
15 | /// The rate (λ) parameter of the distribution. Range: λ ≥ 0.
16 | /// The location at which to compute the density.
17 | /// the density at .
18 | /////
19 | public static double PDF(double rate, double x)
20 | {
21 | //if (rate < 0.0) {
22 | // throw new ArgumentException("InvalidDistributionParameters");
23 | //}
24 |
25 | return x < 0.0 ? 0.0 : rate * Math.Exp(-rate * x);
26 | }
27 |
28 | ///
29 | /// Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
30 | ///
31 | /// The location at which to compute the cumulative distribution function.
32 | /// The rate (λ) parameter of the distribution. Range: λ ≥ 0.
33 | /// the cumulative distribution at location .
34 | /////
35 | public static double CDF(double rate, double x)
36 | {
37 | //if (rate < 0.0) {
38 | // throw new ArgumentException("InvalidDistributionParameters");
39 | //}
40 |
41 | return x < 0.0 ? 0.0 : 1.0 - Math.Exp(-rate * x);
42 | }
43 | }
44 | }
--------------------------------------------------------------------------------
/支撑压力指标/readme.md:
--------------------------------------------------------------------------------
1 |
2 | ## 支撑压力指标 -- 股票博弈论
3 |
4 |
5 | 很多人喜欢均线指标,依据价格围绕价值上下波动理论,低于均价购入给人一种买值了的感觉。
6 |
7 |
8 | 很多人喜欢BOLL指标,因为BOLL指标基础核心是标准差,标准差是数学中非常可靠的理论。靠近BOLL下轨的股票安全很高。
9 |
10 |
11 | 使用均线、BOLL指标的人思路,他们**投资在乎安全,价格离均价越远,超买超卖,反转机率越高。**
12 |
13 | 当一个观念深入人心时,就会被利用,如抽取前几日的样本很容易被人为干扰,不符合抽样条件。
14 |
15 |
16 | 股票一个基础概念,交易由买卖双方构成。每个人入股市都是想赚钱的,有人高位卖出,必有人高点买入;有人低位买入,必有人低位割肉卖出,有人赚钱必有人亏钱,这就是博弈。所以**我们进入股市时,应将与市场所有参与者视为对手。**
17 |
18 |
19 | 确立对手后,然后去找一条打败对手的方案。**股票是一个以价格为博弈的战场,谁的成本价底,谁的优势就大。** 所以我们得计算出对手的成本价,**低于对手成本价买入,这样就有成本优势了。**
20 |
21 |
22 | 有了成本优势,下一步我们应将成本优势最大化,**底部拐点是最好的买点。**
23 |
24 | 思考一下为何有拐点,拐点意味什么?
25 |
26 | **我的猜测,拐点是主力成本价(或预设底价),当价格低于主力成本价时,主力是不会让散户捡到廉价的筹码,所以会产生支撑。**
27 |
28 |
29 | 到此处,我们有了两个价格,一个对手的成本价,一个主力的成本价。
30 |
31 |
32 | 采用BOLL指标上下轨模式,结合中国股市牛短熊长特征和博弈论思想,设定如下:
33 | * 1、上轨设为对手的成本价。由于对手众多,只能算均价。均价不是均线,均价可以通过算法累计股价和成交量算出。
34 | * 2、下轨设为主力的成本价。庄家不会让散户捡到廉价的筹码。通过算法累计最低价,可以计算出庄家的成本价。
35 | * 3、中轨=(上轨+下轨)/2。
36 | * 4、上轨上方还要设置两轨。由于上轨为对手的均价,技术差的散户成本价在上轨的上方。
37 | * 5、下轨下方也要设置两轨。当行情不好时,庄家不会为行情兜底,割血的筹码才是他们想要的。
38 |
39 | 为了方便好记,将7条轨道重新命名,从上到下依次是:大顶、中顶、小顶、中线、小底、中底、大底。
40 |
41 | 
42 |
43 | 中国股市牛短熊长,所以对于多数个股趋势判断非常有效。
44 |
45 | 数据统计证明:2022年7月至2023年10月中旬,沪深A股,交易日大于250天,总共4779只,4126只股票能复现买入卖出点,占86.34%。
46 |
47 |
48 | **缺点,小顶采用的是对手均价,牛市时无法准确判断顶部,无法判断连续涨停的股票。**
49 | 本指标是一个短线指标。
50 |
51 |
52 |
53 | 以下是好指标评判标准,总记100分:
54 | * 1、指标不能有未来函数;(10分)
55 | * 2、指标设计原理要有可靠的底层逻辑,并能阐述其不足之处;(20分)
56 | * 3、指标能够反馈出经济(股价)规律,如价格与价值关系,价格围绕价值上下波动;(20分)
57 | * 4、指标简单,清晰可见,能看股价趋势,上升高弱;(20分)
58 | * 5、指标有能够预判顶部和底部,有数据统计支撑,成功率在85%以上;(20分)
59 | * 6、指标符合自己的操作习惯,补足自身缺点;(10分)
60 |
61 |
62 | 我的评分是85分
63 | * 1、无未来函数,10分
64 | * 2、有可行的底层逻辑,并且能知晓不足,20分
65 | * 3、指标够反馈出股价规律,20分
66 | * 4、指标最多7条线,清晰可见,能看股价趋势,15分
67 | * 5、对一些牛股、连板股无法预测顶部,但有数据统计支撑,15分
68 | * 6、实战中指标还需要结合大行情、成交量、筹码等指标,5分
69 |
70 | ------------------------
71 | 出售阻力支撑指标,398元一年,998元三年,10000元永久。
72 |
73 | 阻力支撑指标无未来函数,有涉及财务报表数据,免费体验60天。
74 |
75 | 无丰富交易经验人员勿买。
76 |
77 |
78 | 百度网盘下载:https://pan.baidu.com/s/13IkFYcnOuu_jpvpEaf_7gA?pwd=d6qc
79 |
80 | 网址:https://stock.toolgood.com
81 |
82 | ------------------------
83 |
84 | 
85 |
86 | 
87 |
88 | 
89 |
90 | 
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/litJson/JsonMapper.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.litJson;
2 |
3 | import java.math.BigDecimal;
4 |
5 | public class JsonMapper {
6 | private static JsonData ReadValue(JsonReader reader) throws JsonException
7 | {
8 | reader.Read();
9 |
10 | if (reader.Token() == JsonToken.ArrayEnd) return null;
11 |
12 | JsonData instance = new JsonData();
13 |
14 | if (reader.Token() == JsonToken.String) {
15 | instance.SetString((String)reader.Value());
16 | return instance;
17 | }
18 |
19 | if (reader.Token() == JsonToken.Double) {
20 | instance.SetDouble((BigDecimal)reader.Value());
21 | return instance;
22 | }
23 |
24 | if (reader.Token() == JsonToken.Boolean) {
25 | instance.SetBoolean((boolean)reader.Value());
26 | return instance;
27 | }
28 | if (reader.Token() == JsonToken.Null)
29 | {
30 | instance.SetNull();
31 | return instance;
32 | }
33 |
34 |
35 | if (reader.Token() == JsonToken.ArrayStart) {
36 | instance.SetJsonType(JsonType.Array);
37 |
38 | while (true) {
39 | JsonData item = ReadValue(reader);
40 | if (item == null && reader.Token() == JsonToken.ArrayEnd) break;
41 | instance.Add((IJsonWrapper)item);
42 | }
43 | } else if (reader.Token() == JsonToken.ObjectStart) {
44 | instance.SetJsonType(JsonType.Object);
45 |
46 | while (true) {
47 | reader.Read();
48 |
49 | if (reader.Token() == JsonToken.ObjectEnd) break;
50 |
51 | String property = (String)reader.Value();
52 | instance.Set(property,(IJsonWrapper) ReadValue(reader));
53 | }
54 |
55 | }
56 |
57 | return instance;
58 | }
59 |
60 |
61 | public static JsonData ToObject(String json) throws JsonException
62 | {
63 | JsonReader reader = new JsonReader(json);
64 | return (JsonData)ReadValue(reader) ;
65 | }
66 | }
--------------------------------------------------------------------------------
/HtmlEditor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 新增项目公式 - FlowVision
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/LitJson/JsonMapper.cs:
--------------------------------------------------------------------------------
1 | namespace ToolGood.Algorithm.LitJson
2 | {
3 | internal sealed class JsonMapper
4 | {
5 | #region Private Methods
6 |
7 | private static IJsonWrapper ReadValue(JsonReader reader)
8 | {
9 | reader.Read();
10 |
11 | if (reader.Token == JsonToken.ArrayEnd) return null;
12 |
13 | IJsonWrapper instance = new JsonData();
14 |
15 | if (reader.Token == JsonToken.String) {
16 | instance.SetString((string)reader.Value);
17 | return instance;
18 | }
19 |
20 | if (reader.Token == JsonToken.Double) {
21 | instance.SetDouble((decimal)reader.Value);
22 | return instance;
23 | }
24 |
25 | if (reader.Token == JsonToken.Boolean) {
26 | instance.SetBoolean((bool)reader.Value);
27 | return instance;
28 | }
29 | if (reader.Token == JsonToken.Null) {
30 | instance.SetNull();
31 | return instance;
32 | }
33 |
34 | if (reader.Token == JsonToken.ArrayStart) {
35 | instance.SetJsonType(JsonType.Array);
36 |
37 | while (true) {
38 | IJsonWrapper item = ReadValue(reader);
39 | if (item == null && reader.Token == JsonToken.ArrayEnd) break;
40 | instance.Add(item);
41 | }
42 | } else if (reader.Token == JsonToken.ObjectStart) {
43 | instance.SetJsonType(JsonType.Object);
44 |
45 | while (true) {
46 | reader.Read();
47 |
48 | if (reader.Token == JsonToken.ObjectEnd) break;
49 |
50 | string property = (string)reader.Value;
51 | instance.Set(property, ReadValue(reader));
52 | }
53 | }
54 |
55 | return instance;
56 | }
57 |
58 | #endregion Private Methods
59 |
60 | public static JsonData ToObject(string json)
61 | {
62 | JsonReader reader = new JsonReader(json);
63 | return ReadValue(reader) as JsonData;
64 | }
65 | }
66 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/Distributions/Poisson.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics.Distributions
4 | {
5 | ///
6 | /// Discrete Univariate Poisson distribution.
7 | ///
8 | ///
9 | /// Distribution is described at Wikipedia - Poisson distribution .
10 | /// Knuth's method is used to generate Poisson distributed random variables.
11 | /// f(x) = exp(-λ)*λ^x/x!;
12 | ///
13 | sealed class Poisson
14 | {
15 | ///
16 | /// Computes the probability mass (PMF) at k, i.e. P(X = k).
17 | ///
18 | /// The location in the domain where we want to evaluate the probability mass function.
19 | /// The lambda (λ) parameter of the Poisson distribution. Range: λ > 0.
20 | /// the probability mass at location .
21 | public static double PMF(double lambda, int k)
22 | {
23 | //if (!(lambda > 0.0)) {
24 | // throw new ArgumentException("InvalidDistributionParameters");
25 | //}
26 |
27 | return Math.Exp(-lambda + (k * Math.Log(lambda)) - SpecialFunctions.FactorialLn(k));
28 | }
29 |
30 | ///
31 | /// Computes the cumulative distribution (CDF) of the distribution at x, i.e. P(X ≤ x).
32 | ///
33 | /// The location at which to compute the cumulative distribution function.
34 | /// The lambda (λ) parameter of the Poisson distribution. Range: λ > 0.
35 | /// the cumulative distribution at location .
36 | /////
37 | public static double CDF(double lambda, double x)
38 | {
39 | //if (!(lambda > 0.0)) {
40 | // throw new ArgumentException("InvalidDistributionParameters");
41 | //}
42 |
43 | return 1.0 - SpecialFunctions.GammaLowerRegularized(x + 1, lambda);
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm.Test/Program.cs:
--------------------------------------------------------------------------------
1 | using Antlr4.Runtime.Misc;
2 | using System;
3 | using System.Globalization;
4 | using System.Text;
5 | using System.Threading;
6 | using ToolGood.Algorithm;
7 |
8 | namespace ToolGood.Algorithm.Test
9 | {
10 | internal class Program
11 | {
12 | private static void Main(string[] args)
13 | {
14 | var t222 = Convert.ToString(122223, 16);
15 | AlgorithmEngine engine = new AlgorithmEngine();
16 |
17 | var b = engine.TryEvaluate("1=1 && 1<2 and 7-8>1", 0);// Support(支持) && || and or
18 | var c = engine.TryEvaluate("2+3", 0);
19 | var d = engine.TryEvaluate("count(array(1,2,3,4))", 0);//{} represents array, return: 4 {}代表数组,返回:4
20 | var s = engine.TryEvaluate("'aa'&'bb'", ""); //String connection, return: AABB 字符串连接,返回:aabb
21 | var r = engine.TryEvaluate("(1=1)*9+2", 0); //Return: 11 返回:11
22 | var e = engine.TryEvaluate("'2016-1-1'+1", DateTime.MinValue); //Return date: 2016-1-2 返回日期:2016-1-2
23 | var t = engine.TryEvaluate("'2016-1-1'+9*'1:0'", DateTime.MinValue);//Return datetime:2016-1-1 9:0 返回日期:2016-1-1 9:0
24 | var j = engine.TryEvaluate("json('{\"Name\":\"William Shakespeare\",\"Age\":51,\"Birthday\":\"04/26/1564 00:00:00\"}').Age", null);//Return 51 返回51
25 | var k = engine.TryEvaluate("json('{\"Name\":\"William Shakespeare \",\"Age\":51,\"Birthday\":\"04/26/1564 00:00:00\"}')[Name].Trim()", null);//Return to "William Shakespeare" 返回"William Shakespeare" (不带空格)
26 | var l = engine.TryEvaluate("json('{\"Name1\":\"William Shakespeare \",\"Age\":51,\"Birthday\":\"04/26/1564 00:00:00\"}')['Name'& 1].Trim().substring(2,3)", null); ;//Return "ill" 返回"ill"
27 | var n = engine.TryEvaluate("{Name:\"William Shakespeare\", Age:51, Birthday:\"04/26/1564 00:00:00\"}.Age", null);//Return 51 返回51
28 | var m = engine.TryEvaluate("[1,2,3,4,5,6].has(13)", true);//Return false 返回false
29 |
30 | Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
31 | Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
32 |
33 | Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
34 | PetaTest.Runner.RunMain(args);
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/java/toolgood.algorithm/src/main/java/toolgood/algorithm/mathNet/Statistics/Statistics.java:
--------------------------------------------------------------------------------
1 | package toolgood.algorithm.mathNet.Statistics;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 |
6 | public class Statistics {
7 | public static double QuantileCustom(final List data, final double tau,
8 | final QuantileDefinition definition) throws Exception {
9 | double[] array = new double[data.size()];
10 | for (int i = 0; i < data.size(); i++) {
11 | array[i]=data.get(i);
12 | }
13 | return ArrayStatistics.QuantileCustomInplace(array, tau, definition);
14 | }
15 | public static double QuantileCustom(final double[] data, final double tau, final QuantileDefinition definition) throws Exception {
16 | return ArrayStatistics.QuantileCustomInplace(data, tau, definition);
17 | }
18 | public static double QuantileRank(final double[] data, final double x) {
19 | List dt= new ArrayList();
20 | for (int i = 0; i < data.length; i++) {
21 | dt.add(data[i]);
22 | }
23 | return QuantileRank(dt, x);
24 | }
25 |
26 | public static double QuantileRank(final List data, final double x) {
27 | List dt=ShellSort(data);
28 | double[] array = new double[dt.size()];
29 | for (int i = 0; i < dt.size(); i++) {
30 | array[i]=dt.get(i);
31 | }
32 | return SortedArrayStatistics.QuantileRank(array, x);
33 | }
34 |
35 | private static List ShellSort(List array) {
36 | int len = array.size();
37 | double temp;
38 | int gap = len / 2;
39 | while (gap > 0) {
40 | for (int i = gap; i < len; i++) {
41 | temp = array.get(i);
42 | int preIndex = i - gap;
43 | while (preIndex >= 0 && array.get(preIndex) > temp) {
44 | array.set(preIndex + gap, array.get(preIndex));
45 | // array[preIndex + gap] = array[preIndex];
46 | preIndex -= gap;
47 | }
48 | array.set(preIndex + gap, temp);
49 | // array[preIndex + gap] = temp;
50 | }
51 | gap /= 2;
52 | }
53 | return array;
54 | }
55 | }
--------------------------------------------------------------------------------
/tools/Antlr4Helper.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30225.117
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Antlr4Helper.CSharpHelper", "Antlr4Helper.CSharpHelper\Antlr4Helper.CSharpHelper.csproj", "{39AC0C68-6CDB-4D4A-81F6-26BE0EAA1340}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Antlr4Helper.JavaScriptHelper", "Antlr4Helper.JavaScriptHelper\Antlr4Helper.JavaScriptHelper.csproj", "{F1B70AE9-51ED-4D4E-8E3B-F7C85F0CA316}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Antlr4Helper.JavaHelper", "Antlr4Helper.JavaHelper\Antlr4Helper.JavaHelper.csproj", "{C495CEF6-C191-4BBB-B95F-072F6248E86B}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {39AC0C68-6CDB-4D4A-81F6-26BE0EAA1340}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {39AC0C68-6CDB-4D4A-81F6-26BE0EAA1340}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {39AC0C68-6CDB-4D4A-81F6-26BE0EAA1340}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {39AC0C68-6CDB-4D4A-81F6-26BE0EAA1340}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {F1B70AE9-51ED-4D4E-8E3B-F7C85F0CA316}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {F1B70AE9-51ED-4D4E-8E3B-F7C85F0CA316}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {F1B70AE9-51ED-4D4E-8E3B-F7C85F0CA316}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {F1B70AE9-51ED-4D4E-8E3B-F7C85F0CA316}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {C495CEF6-C191-4BBB-B95F-072F6248E86B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {C495CEF6-C191-4BBB-B95F-072F6248E86B}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {C495CEF6-C191-4BBB-B95F-072F6248E86B}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {C495CEF6-C191-4BBB-B95F-072F6248E86B}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {28AF7A87-4382-4D6D-96C9-6287D909DF59}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/csharp/ToolGood.Algorithm/MathNet/ExcelFunctions.ext.cs:
--------------------------------------------------------------------------------
1 | using ToolGood.Algorithm.MathNet.Numerics.Distributions;
2 |
3 | namespace ToolGood.Algorithm.MathNet.Numerics
4 | {
5 | internal static partial class ExcelFunctions
6 | {
7 | public static double GAMMALN(double z)
8 | {
9 | return SpecialFunctions.GammaLn(z);
10 | }
11 |
12 | //public static double ChiDist(double x, double freedom)
13 | //{
14 | // return Chi.PDF(x, freedom);//Is Error
15 | //}
16 |
17 | public static double ExponDist(double x, double rate, bool state)
18 | {
19 | if (state) {
20 | return Exponential.CDF(rate, x);
21 | }
22 | return Exponential.PDF(rate, x);
23 | }
24 |
25 | public static double HypgeomDist(int k, int draws, int success, int population)
26 | {
27 | return Hypergeometric.PMF(population, success, draws, k);
28 | }
29 |
30 | public static double NegbinomDist(int k, double r, double p)
31 | {
32 | return NegativeBinomial.PMF(r, p, k);
33 | }
34 |
35 | public static double LognormDist(double x, double mu, double sigma)
36 | {
37 | return LogNormal.CDF(mu, sigma, x);
38 | }
39 |
40 | public static double LogInv(double p, double mu, double sigma)
41 | {
42 | return LogNormal.InvCDF(mu, sigma, p);
43 | }
44 |
45 | public static double BinomDist(int k, int n, double p, bool state)
46 | {
47 | if (state == false) {
48 | return Binomial.PMF(p, n, k);
49 | }
50 | return Binomial.CDF(p, n, k);
51 | }
52 |
53 | public static double Poisson(int k, double lambda, bool state)
54 | {
55 | if (state == false) {
56 | return Distributions.Poisson.PMF(lambda, k);
57 | }
58 | return Distributions.Poisson.CDF(lambda, k);
59 | }
60 |
61 | public static double Weibull(double x, double shape, double scale, bool state)
62 | {
63 | if (state == false) {
64 | return Distributions.Weibull.PDF(shape, scale, x);
65 | }
66 | return Distributions.Weibull.CDF(shape, scale, x);
67 | }
68 | }
69 | }
--------------------------------------------------------------------------------