C# Class GnomeServer.Controllers.GnomeController

Inheritance: ConventionRoutingController
Show file Open project: Rychard/GnomeServer

Public Methods

Method Description
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

Private Methods

Method Description
Add ( ) : IResponseFormatter
Assign ( ) : IResponseFormatter
Get ( ) : IResponseFormatter
GetBestProfessions ( Game.Character gnome ) : Int32>.Dictionary
SetProfession ( Game.Character gnomad, String professionTitle ) : void

Method Details

GetRatios() public method

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.
return Double[]

GetSkillsByProfession() public method

public GetSkillsByProfession ( ) : List>.Dictionary
return List>.Dictionary