All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fregata.preprocessing.normalize.scala Maven / Gradle / Ivy

The newest version!
package fregata.preprocessing

import breeze.linalg.minMax
import fregata._

/**
 * Created by takun on 16/8/9.
 */
object normalize {
  def apply(x:Vector) = {
    val (_min,_max) = minMax(x)
    val r = (x - _min ) / (_max - _min)
    r.asInstanceOf[Vector]
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy