Skip to content

Commit b369c9c

Browse files
committed
noted methods with default arguments
1 parent 7e1a7da commit b369c9c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

TODO.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
## Next Implementations
22

3-
3+
- Cocoso has optional argument of lambda with default value 0.5
4+
- Codas has optional argument of tau with default value 0.02
5+
- Waspas has optional argument of lambda with default value 0.5

src/main/scala/waspas.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ case class WaspasResult(
1010
ranks: Vec
1111
) extends MCDMResult
1212

13-
val defaultWaspasOptions: Map[String, Any] = Map(
14-
"lambda" -> 0.5
15-
)
1613

1714
def waspas(
1815
decisionMat: Mat,
1916
weights: Vec,
2017
directions: Array[Direction],
2118
normalization: NormalizationFunction = DivideByColumnMaxMinNormalization,
22-
options: Map[String, Any] = defaultWaspasOptions
19+
options: Map[String, Any] = Map("lambda" -> 0.5)
2320
): WaspasResult =
2421

2522
val (row, col) = Matrix.size(decisionMat)

0 commit comments

Comments
 (0)