C# 클래스 StopGuessing.DataStructures.Proportion

A class representing a proportion, or fraction, of numerator over denominator. This comes in handy when one might care about the actual magnitude of the numerator/denominator, which is list in a representation that divides the numerator by the denominator.
파일 보기 프로젝트 열기: Microsoft/StopGuessing 1 사용 예제들

공개 메소드들

메소드 설명
GetLargest ( IEnumerable proportions ) : Proportion
MinDenominator ( ulong minDenominator ) : Proportion

Return this proportion modified to have a denominator at least as large as a value specified in the parameter.

Proportion ( ulong numerator, ulong denominator ) : System.Collections.Generic

메소드 상세

GetLargest() 공개 정적인 메소드

public static GetLargest ( IEnumerable proportions ) : Proportion
proportions IEnumerable
리턴 Proportion

MinDenominator() 공개 메소드

Return this proportion modified to have a denominator at least as large as a value specified in the parameter.
public MinDenominator ( ulong minDenominator ) : Proportion
minDenominator ulong The denominator to use if the proportions denominator is less than this value.
리턴 Proportion

Proportion() 공개 메소드

public Proportion ( ulong numerator, ulong denominator ) : System.Collections.Generic
numerator ulong
denominator ulong
리턴 System.Collections.Generic