C# Класс GnomeServer.Controllers.GnomeController

Наследование: ConventionRoutingController
Показать файл Открыть проект

Открытые методы

Метод Описание
GetRatios ( Int32 length, Double rateOfChange = 0.5 ) : Double[]

Gets an array of coefficients that can be used to weight a numerical sequence of the specified length. The value of an element in the array represents the weighting coefficient for the item at the corresponding index in the sequence.

The sum of the array's elements should always equal 1. When a low value is provided for length, the sum of the array elements is measurably smaller than 1. Consequently, after all elements in the sequence have been calculated, the remainder is divided equally between all elements such that their sum approaches 1.

GetSkillsByProfession ( ) : List>.Dictionary

Приватные методы

Метод Описание
Add ( ) : IResponseFormatter
Assign ( ) : IResponseFormatter
Get ( ) : IResponseFormatter
GetBestProfessions ( Game.Character gnome ) : Int32>.Dictionary
SetProfession ( Game.Character gnomad, String professionTitle ) : void

Описание методов

GetRatios() публичный Метод

Gets an array of coefficients that can be used to weight a numerical sequence of the specified length. The value of an element in the array represents the weighting coefficient for the item at the corresponding index in the sequence.
The sum of the array's elements should always equal 1. When a low value is provided for length, the sum of the array elements is measurably smaller than 1. Consequently, after all elements in the sequence have been calculated, the remainder is divided equally between all elements such that their sum approaches 1.
public GetRatios ( Int32 length, Double rateOfChange = 0.5 ) : Double[]
length System.Int32 The length of the sequence for which weighting coefficients will be returned.
rateOfChange Double The rate at which the ratios change.
Результат Double[]

GetSkillsByProfession() публичный Метод

public GetSkillsByProfession ( ) : List>.Dictionary
Результат List>.Dictionary