aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/scalam/m/ast/Identifier.scala2
-rw-r--r--src/main/scala/scalam/math/package.scala4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/scala/scalam/m/ast/Identifier.scala b/src/main/scala/scalam/m/ast/Identifier.scala
index 45dd967..013f641 100644
--- a/src/main/scala/scalam/m/ast/Identifier.scala
+++ b/src/main/scala/scalam/m/ast/Identifier.scala
@@ -2,7 +2,7 @@ package scalam.m.ast
/**
* A matlab identifier.
- * @name name of variable (this must be a valid matlab identifier string)
+ * @param name name of variable (this must be a valid matlab identifier string)
*
* @define construct identifier
*/
diff --git a/src/main/scala/scalam/math/package.scala b/src/main/scala/scalam/math/package.scala
index 44e6876..44d324f 100644
--- a/src/main/scala/scalam/math/package.scala
+++ b/src/main/scala/scalam/math/package.scala
@@ -10,11 +10,13 @@ package object math {
* The algorithm takes a window of width `width` that "slides" along the whole collection.
* A new collection is created by taking the average of all points located in each window.
*
+ * @usecase def smooth[Elem, Coll[Elem]](collection: Coll[Elem], width: Int, passes: Int): Coll[Elem] = sys.error("")
+ *
* @param collection the collection to smooth
* @param width the window's witdh
* @param passes how many times the collection is smoothed (i.e. how often smooth calls itself recursively)
* @tparam Elem the type of the elements contained in the collection
- * @tparam Coll[Elem] the type of the collection to be smoothed
+ * @tparam Coll the type of the collection to be smoothed
*/
def smooth[Elem, Coll[Elem]](collection: Coll[Elem], width: Int, passes: Int = 1)(implicit fractional: Fractional[Elem], cbf: CanBuildFrom[Coll[Elem], Elem, Coll[Elem]], view: Coll[Elem] => Seq[Elem]): Coll[Elem] = {
def average(xs: Seq[Elem]): Elem = {