com.compomics.angrypeptide.fun
Class Targets

java.lang.Object
  extended by com.compomics.angrypeptide.fun.Targets

public class Targets
extends Object

This class contains the targets.

Author:
Marc

Constructor Summary
Targets()
          Constructor
 
Method Summary
 void addTarget(double position, double value)
          Adds a target to the model
 int getNTargets()
          Returns the number of targets
 ArrayList<Double> getPositions()
          Returns all possible target values
 Target getTargetAtPosition(double position)
          Returns the target associated to a position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Targets

public Targets()
Constructor

Method Detail

addTarget

public void addTarget(double position,
                      double value)
Adds a target to the model

Parameters:
target -

getNTargets

public int getNTargets()
Returns the number of targets

Returns:

getPositions

public ArrayList<Double> getPositions()
Returns all possible target values

Returns:

getTargetAtPosition

public Target getTargetAtPosition(double position)
Returns the target associated to a position. Null if none.

Parameters:
value -
Returns:


Copyright © 2013. All Rights Reserved.