org.eclipse.january.dataset

## Class CollectionStats

- java.lang.Object
- - org.eclipse.january.dataset.CollectionStats

-     public class CollectionStats
      extends Object

  Statistics of data set lists. Used for image processing.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CollectionStats()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Dataset` | `mean(List<IDataset> sets)` Used to get a mean image from a set of images for instance.
    `static Dataset` | `median(List<IDataset> sets)` Used to get a median image from a set of images for instance.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CollectionStats

          public CollectionStats()

  - ### Method Detail

    - #### mean

          public static Dataset mean(List<IDataset> sets)
                              throws Exception

      Used to get a mean image from a set of images for instance.
      Parameters:
        `sets` - datasets
      Returns:
        mean dataset of the same shape as those passed in
      Throws:
        `Exception` - when datasets have different shapes

    - #### median

          public static Dataset median(List<IDataset> sets)
                                throws Exception

      Used to get a median image from a set of images for instance.
      Parameters:
        `sets` - datasets
      Returns:
        median dataset of the same shape as those passed in
      Throws:
        `Exception` - when datasets have different shapes

Copyright © 2014–2022 Eclipse Foundation. All rights reserved.