Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test{
- public static void main(String []args){
- java.util.Scanner in=new java.util.Scanner(System.in);
- System.out.print("Input Threshold\t\t:");
- double tres=in.nextDouble();
- System.out.print("Input Alpha\t\t:");
- double alpha=in.nextDouble();
- System.out.print("Input weight1, w1\t:");
- double w1=in.nextDouble();
- System.out.print("Input weight2, w2\t:");
- double w2=in.nextDouble();
- Perceptron p=new Perceptron();
- p.initialize(tres,alpha,w1,w2);
- p.start();
- System.out.println(p.toString());
- System.exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment