All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.chen0040.gp.treegp.program.operators.Tan Maven / Gradle / Ivy

package com.github.chen0040.gp.treegp.program.operators;


import com.github.chen0040.gp.commons.Observation;
import com.github.chen0040.gp.treegp.program.Operator;
import com.github.chen0040.gp.treegp.program.Primitive;


/**
 * Created by xschen on 11/5/2017.
 */
public class Tan extends Operator {

   private static final long serialVersionUID = 315384748598262406L;


   public Tan(){
      super(1, "tan");
   }

   @Override public void execute(Observation observation){
      setValue(Math.tan(getInput(0)));
   }


   @Override public Primitive makeCopy() {
      return new Tan().copy(this);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy