net.sourceforge.cilib.functions.discrete
Class LongestCommonSubsequence

java.lang.Object
  extended by net.sourceforge.cilib.functions.Function
      extended by net.sourceforge.cilib.functions.DiscreteFunction
          extended by net.sourceforge.cilib.functions.discrete.LongestCommonSubsequence
All Implemented Interfaces:
Serializable, Cloneable

public class LongestCommonSubsequence
extends DiscreteFunction

Implementation of the Longest Common Subsequence problem.

Author:
gpampara
See Also:
Serialized Form

Constructor Summary
LongestCommonSubsequence()
           
 
Method Summary
 double evaluate(Vector x)
          Evaluate the function output, given the function input, x.
 LongestCommonSubsequence getClone()
          Create a cloned copy of the current object and return it.
 
Methods inherited from class net.sourceforge.cilib.functions.DiscreteFunction
evaluate, getMaximum, getMinimum
 
Methods inherited from class net.sourceforge.cilib.functions.Function
getBehavioralDomainRegistry, getDimension, getDomain, getDomainRegistry, setBehavioralDomain, setBehaviouralDomainRegistry, setDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongestCommonSubsequence

public LongestCommonSubsequence()
Method Detail

getClone

public LongestCommonSubsequence getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

evaluate

public double evaluate(Vector x)
Description copied from class: DiscreteFunction
Evaluate the function output, given the function input, x.

Specified by:
evaluate in class DiscreteFunction
Parameters:
x - The Vector representing the function input.
Returns:
The result of the evaluation.


Copyright © 2009 CIRG. All Rights Reserved.