# UniversalWeightSystem
**Repository Path**: believingheart/UniversalWeightSystem
## Basic Information
- **Project Name**: UniversalWeightSystem
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-05
- **Last Updated**: 2021-04-30
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## 介绍
- 通用补偿系统(*UniversalWeightSystem.Core*)是为任意补偿方式开发的基础库
- 补偿以及上下限模块(*WeightAndBoundaryModule*)是基于通用补偿系统开发的WPF模块, 已经集成了补偿的定义, 保存, 加载和导入导出和权限管理功能
## 使用
1. UniversalWeightSystem.Core
- 只含有一个函数WeightWeaver.Weight
```cs
///
///
///
/// 输入的变量
/// 用于补偿的变量
/// 定义的计算方法
/// 用作python变量的输入变量名称
/// 用作Python变量的补偿变量名称
/// 补偿后的变量
public static (Dictionary output, Dictionary exceptions) Weight(
Dictionary inputs,
Dictionary weights,
Dictionary scripts, string inputName = "input", string weightName = "weight");
```
- 使用方法参考测试项目*UniversalWeightSystem.Core.Tests*
- Nuget包, 搜索*UniversalWeightSystem.Core*
2. WeightAndBoundaryModule
- 可用的类: *WeightAndBoundaryViewModel*
- 使用方法参考Dev项目

- Nuget包, 搜索*WeightAndBoundaryModule*