Documentation ¶
Index ¶
- Variables
- func ElectreIII(alternatives []AlternativeWithCriteria, criteria Criteria, ...) *AlternativesRanking
- func EvaluateRanking(ascending, descending *[]int, alternatives *[]AlternativeWithCriteria) *AlternativesRanking
- func Max(values *[]int) int
- func RankAscending(matrix *AlternativesMatrix, distillationFun *utils.LinearFunctionParameters) *[]int
- func RankDescending(matrix *AlternativesMatrix, distillationFun *utils.LinearFunctionParameters) *[]int
- type AlternativesMatrix
- type CompareFunction
- type ElectreCriteria
- type ElectreCriterion
- type ElectreIIIBiasLIstener
- func (e *ElectreIIIBiasLIstener) Identifier() string
- func (e *ElectreIIIBiasLIstener) Merge(params model.MethodParameters, addition model.MethodParameters) model.MethodParameters
- func (e *ElectreIIIBiasLIstener) OnCriteriaRemoved(leftCriteria *model.Criteria, params model.MethodParameters) model.MethodParameters
- func (e *ElectreIIIBiasLIstener) OnCriterionAdded(criterion *model.Criterion, referenceCriterion *model.Criterion, ...) model.AddedCriterionParams
- func (e *ElectreIIIBiasLIstener) RankCriteriaAscending(params *model.DecisionMakingParams) *model.WeightedCriteria
- type ElectreIIIEvaluation
- type ElectreIIIInputParams
- type ElectreIIIPreferenceFunc
- type ElectreResult
- type Matrix
- func (m *Matrix) At(row, col int) float64
- func (m *Matrix) Filter(filter func(row, col int, v float64) bool) *Matrix
- func (m *Matrix) FindBest(isBetter func(old, new float64) bool) float64
- func (m *Matrix) Matches(groupsNumber int, groupEvaluator func(row, col int) int, ...) []int
- func (m *Matrix) MatchesInColumn(predicate func(value float64) bool) []int
- func (m *Matrix) MatchesInRow(predicate func(value float64) bool) []int
- func (m *Matrix) Max() float64
- func (m *Matrix) Min() float64
- func (m *Matrix) Slice(indices *[]int) *Matrix
- func (m *Matrix) String() string
- func (m *Matrix) Without(indices *[]int) *Matrix
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDistillationFunc = utils.LinearFunctionParameters{A: -.15, B: .3}
Functions ¶
func ElectreIII ¶
func ElectreIII( alternatives []AlternativeWithCriteria, criteria Criteria, electreCriteria *ElectreCriteria, distillationFun *utils.LinearFunctionParameters, ) *AlternativesRanking
func EvaluateRanking ¶
func EvaluateRanking(ascending, descending *[]int, alternatives *[]AlternativeWithCriteria) *AlternativesRanking
func RankAscending ¶
func RankAscending(matrix *AlternativesMatrix, distillationFun *utils.LinearFunctionParameters) *[]int
func RankDescending ¶
func RankDescending(matrix *AlternativesMatrix, distillationFun *utils.LinearFunctionParameters) *[]int
Types ¶
type AlternativesMatrix ¶
type AlternativesMatrix struct { Alternatives *Alternatives `json:"alternatives"` Values *Matrix `json:"values"` }
type CompareFunction ¶
type ElectreCriteria ¶
type ElectreCriteria = map[string]ElectreCriterion
type ElectreCriterion ¶
type ElectreCriterion struct { K float64 `json:"k"` Q utils.LinearFunctionParameters `json:"q"` P utils.LinearFunctionParameters `json:"p"` V utils.LinearFunctionParameters `json:"v"` }
type ElectreIIIBiasLIstener ¶
type ElectreIIIBiasLIstener struct { }
func (*ElectreIIIBiasLIstener) Identifier ¶
func (e *ElectreIIIBiasLIstener) Identifier() string
func (*ElectreIIIBiasLIstener) Merge ¶
func (e *ElectreIIIBiasLIstener) Merge(params model.MethodParameters, addition model.MethodParameters) model.MethodParameters
func (*ElectreIIIBiasLIstener) OnCriteriaRemoved ¶
func (e *ElectreIIIBiasLIstener) OnCriteriaRemoved( leftCriteria *model.Criteria, params model.MethodParameters, ) model.MethodParameters
func (*ElectreIIIBiasLIstener) OnCriterionAdded ¶
func (e *ElectreIIIBiasLIstener) OnCriterionAdded( criterion *model.Criterion, referenceCriterion *model.Criterion, params model.MethodParameters, generator utils.ValueGenerator, ) model.AddedCriterionParams
func (*ElectreIIIBiasLIstener) RankCriteriaAscending ¶
func (e *ElectreIIIBiasLIstener) RankCriteriaAscending(params *model.DecisionMakingParams) *model.WeightedCriteria
type ElectreIIIEvaluation ¶
type ElectreIIIInputParams ¶
type ElectreIIIInputParams struct { Criteria ElectreCriteria `json:"criteria"` DistillationFun utils.LinearFunctionParameters `json:"distillationFun,omitempty"` }
type ElectreIIIPreferenceFunc ¶
type ElectreIIIPreferenceFunc struct { }
func (*ElectreIIIPreferenceFunc) Evaluate ¶
func (e *ElectreIIIPreferenceFunc) Evaluate(dmp *DecisionMakingParams) *AlternativesRanking
func (*ElectreIIIPreferenceFunc) Identifier ¶
func (e *ElectreIIIPreferenceFunc) Identifier() string
func (*ElectreIIIPreferenceFunc) MethodParameters ¶
func (e *ElectreIIIPreferenceFunc) MethodParameters() interface{}
func (*ElectreIIIPreferenceFunc) ParseParams ¶
func (e *ElectreIIIPreferenceFunc) ParseParams(dm *model.DecisionMaker) interface{}
type ElectreResult ¶
type Matrix ¶
func (*Matrix) MatchesInColumn ¶
func (*Matrix) MatchesInRow ¶
Click to show internal directories.
Click to hide internal directories.