Package net.sf.tweety.machinelearning
Class ParameterSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<TrainingParameter>
-
- net.sf.tweety.machinelearning.ParameterSet
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<TrainingParameter>
,java.util.Collection<TrainingParameter>
,java.util.List<TrainingParameter>
,java.util.RandomAccess
public class ParameterSet extends java.util.ArrayList<TrainingParameter>
A set of parameters that can be given to a trainer to specifiy the training task.- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterSet()
-
Method Summary
Modifier and Type Method Description boolean
containsParameter(TrainingParameter param)
Checks whether this set contains a parameter with the same name as the given parameter.TrainingParameter
getParameter(TrainingParameter param)
Returns the parameter of this set with the same name as the given parameter (or throws an IllegalArgumentException)-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
containsParameter
public boolean containsParameter(TrainingParameter param)
Checks whether this set contains a parameter with the same name as the given parameter.- Parameters:
param
- some parameter- Returns:
- Checks whether this set contains a parameter with the same name as the given parameter.
-
getParameter
public TrainingParameter getParameter(TrainingParameter param)
Returns the parameter of this set with the same name as the given parameter (or throws an IllegalArgumentException)- Parameters:
param
- some parameter- Returns:
- Returns the parameter of this set with the same name as the given parameter (or throws an IllegalArgumentException)
-
-