Package jline.lang

Class Ensemble

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class Ensemble
    extends Model
                        

    A model defined by a collection of sub-models

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Ensemble(List<Network> models) Creates a new ensemble containing the specified network models.
      Ensemble(String name) Creates a new ensemble with the specified name.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<Network> getEnsemble() Gets the list of network models in this ensemble.
      void setEnsemble(List<Network> ensemble) Sets the list of network models for this ensemble.
      Network getModel(int modelIdx) Gets a specific network model from the ensemble by index.
      int size() Gets the number of network models in this ensemble.
      • Methods inherited from class jline.lang.Model

        getName, getVersion, setName, setVersion
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ensemble

        Ensemble(List<Network> models)
        Creates a new ensemble containing the specified network models.
        Parameters:
        models - the list of network models to include in this ensemble
      • Ensemble

        Ensemble(String name)
        Creates a new ensemble with the specified name.
        Parameters:
        name - the name for this ensemble
    • Method Detail

      • getEnsemble

         List<Network> getEnsemble()

        Gets the list of network models in this ensemble.

        Returns:

        the list of network models

      • setEnsemble

         void setEnsemble(List<Network> ensemble)

        Sets the list of network models for this ensemble.

        Parameters:
        ensemble - the list of network models to set
      • getModel

         Network getModel(int modelIdx)

        Gets a specific network model from the ensemble by index.

        Parameters:
        modelIdx - the index of the model to retrieve (0-based)
        Returns:

        the network model at the specified index

      • size

         int size()

        Gets the number of network models in this ensemble.

        Returns:

        the number of models in the ensemble