Documentation ¶
Index ¶
- func CheckCount(t *testing.T, typ string, expected []string, actual *model.Criteria)
- func CompareRankings(expected, received *AlternativesRanking, t *testing.T)
- func CyclicRandomGenerator(start, cycle int64) func(seed int64) utils.ValueGenerator
- func DummyAlternative(id string, value Weight) AlternativeResult
- func DummyRankingEntry(alts AltsMap, thisAlt string, betterThanOrSameAs ...Alternative) AlternativesRankEntry
- func ExtractAlternativesFromResults(a *AlternativeResults) *[]AlternativeWithCriteria
- func GenerateCriteria(number int) Criteria
- func TestBiasRanking(index int, t *testing.T, bias model.BiasListener, ...)
- func ValidateWeights(t *testing.T, name string, expected, actual Weights)
- func WrapAlternatives(alternativesWeights []model.Weights) []model.AlternativeWithCriteria
- type AltsMap
- type DummyBiasListener
- func (d *DummyBiasListener) Identifier() string
- func (d *DummyBiasListener) Merge(params model.MethodParameters, addition model.MethodParameters) model.MethodParameters
- func (d *DummyBiasListener) OnCriteriaRemoved(leftCriteria *model.Criteria, params model.MethodParameters) model.MethodParameters
- func (d *DummyBiasListener) OnCriterionAdded(criterion *model.Criterion, referenceCriterion *model.Criterion, ...) model.AddedCriterionParams
- func (d *DummyBiasListener) RankCriteriaAscending(params *model.DecisionMakingParams) *model.WeightedCriteria
- type DummyMethodParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCount ¶
func CompareRankings ¶
func CyclicRandomGenerator ¶
func CyclicRandomGenerator(start, cycle int64) func(seed int64) utils.ValueGenerator
func DummyAlternative ¶
func DummyAlternative(id string, value Weight) AlternativeResult
func DummyRankingEntry ¶
func ExtractAlternativesFromResults ¶
func ExtractAlternativesFromResults(a *AlternativeResults) *[]AlternativeWithCriteria
func GenerateCriteria ¶
func GenerateCriteria(number int) Criteria
func TestBiasRanking ¶
func TestBiasRanking(index int, t *testing.T, bias model.BiasListener, params *model.DecisionMakingParams, expectedOrder []string)
func ValidateWeights ¶
func WrapAlternatives ¶
func WrapAlternatives(alternativesWeights []model.Weights) []model.AlternativeWithCriteria
Types ¶
type AltsMap ¶
type AltsMap = *map[string]AlternativeResult
func AlternativesResultToMap ¶
func AlternativesResultToMap(a *AlternativeResults) AltsMap
type DummyBiasListener ¶
type DummyBiasListener struct { }
func (*DummyBiasListener) Identifier ¶
func (d *DummyBiasListener) Identifier() string
func (*DummyBiasListener) Merge ¶
func (d *DummyBiasListener) Merge(params model.MethodParameters, addition model.MethodParameters) model.MethodParameters
func (*DummyBiasListener) OnCriteriaRemoved ¶
func (d *DummyBiasListener) OnCriteriaRemoved(leftCriteria *model.Criteria, params model.MethodParameters) model.MethodParameters
func (*DummyBiasListener) OnCriterionAdded ¶
func (d *DummyBiasListener) OnCriterionAdded( criterion *model.Criterion, referenceCriterion *model.Criterion, params model.MethodParameters, generator utils.ValueGenerator, ) model.AddedCriterionParams
func (*DummyBiasListener) RankCriteriaAscending ¶
func (d *DummyBiasListener) RankCriteriaAscending(params *model.DecisionMakingParams) *model.WeightedCriteria
type DummyMethodParameters ¶
type DummyMethodParameters struct {
Criteria []string
}
Click to show internal directories.
Click to hide internal directories.