Skip to content

Instantly share code, notes, and snippets.

@ejc123
Created September 26, 2013 18:33
Show Gist options
  • Save ejc123/6718556 to your computer and use it in GitHub Desktop.
Save ejc123/6718556 to your computer and use it in GitHub Desktop.
package geotrellis.statistics
/**
* Data object for sharing the basic statistics about a raster or region.
*/
case class Statistics(val mean:Double = Double.NaN, val median:Int = geotrellis.NODATA,
val mode:Int = geotrellis.NODATA, val stddev:Double = Double.NaN,
val zmin:Int = geotrellis.NODATA, val zmax:Int = geotrellis.NODATA)
object Statistics extends Statistics {
val EMPTY = Statistics()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment