Package com.wiieditor.main

Source Code of com.wiieditor.main.Main

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.wiieditor.main;

import com.wiieditor.gui.ConverterApp;
import com.wiieditor.other.DataInterpolator;
import com.wiieditor.wiimote.WiiMoteController;
import com.wiieditor.wiimote.WiiMoteListener;

/**
*
* @author zohaibrauf
*/
public class Main {
   
    public static void main(String []args) throws InterruptedException{
       
        /*char c='a';
        double [] d=DataInterpolator.convertCharToNeuronDoubleArr(c);
        for(int i=0;i<d.length;i++){
            System.out.print(d[i]+",");
        }
        System.out.println();
        System.out.println(DataInterpolator.convertNeuronDoubleArrToChar(d));*/
        WiiMoteController wiimoteController=WiiMoteController.createWiiMoteController();
        wiimoteController.find();
        wiimoteController.startListening();
       
        ConverterApp.launch(ConverterApp.class, args);
        /*NeuralNetworkWrapper net=new NeuralNetworkWrapper(2, 1);
        net.learn(new NeuralData(new double[]{0,0}, new double[]{0}));
        net.learn(new NeuralData(new double[]{0,1}, new double[]{1}));
        net.learn(new NeuralData(new double[]{1,0}, new double[]{1}));
        net.learn(new NeuralData(new double[]{1,1}, new double[]{0}));
       
        NeuralData nd=net.calculateAndGetOuput(new NeuralData(new double[]{0,1}, new double[]{0}));
        System.out.println(nd.toString());
        double d=nd.getOutputVector()[0];
        System.out.println(Math.round(d));*/
       
        //WiiMoteController wiimoteController=WiiMoteController.createWiiMoteController();
        //wiimoteController.find();
        /*WiiMoteListener li=new WiiMoteListener() {

            @Override
            public void irMoved(double x, double y) {
                System.err.println("WIIMOTELISTENER: "+x+","+y);
            }
        };
        wiimoteController.registerListener(li);*/
        //wiimoteController.startListening();
       
        //Thread.sleep(60000l);
       
        //wiimoteController.disconnect();
       
    }
   
}
TOP

Related Classes of com.wiieditor.main.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.