This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define irLedPin 4 // IR Led on this pin | |
| #define irSensorPin 5 // IR sensor on this pin | |
| int irRead(int readPin, int triggerPin); //function prototype | |
| void setup() | |
| { | |
| pinMode(irSensorPin, INPUT); | |
| pinMode(irLedPin, OUTPUT); | |
| Serial.begin(9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String fontPath = "Face Your Fears.ttf"; | |
| Typeface tf = Typeface.createFromAsset(getAssets(), fontPath); | |
| TextView appName = (TextView) findViewById(R.id.textView1); | |
| appName.setTypeface(tf); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( document ).ready(function() { | |
| var lista = $('.block-post-title'); | |
| for(var i = 0; i < lista.length; i++){ | |
| var url = $(lista[i]).find('a').attr('href'); | |
| console.log(url); | |
| window.open(url); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| close all, clear all, clc; | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| %Computacao neuronal e sistemas difusos - mestrado integrado em engenharia | |
| %biomedica 2014/2015 | |
| %Elaborado por: | |
| %Gabriela Lopes Costa | |
| %Jose Pedro Oliveira | |
| % | |
| %duvidas ou sugestoes: jpdo@student.fisica.uc.pt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package dataBaseClothesPk; | |
| import java.sql.Connection; | |
| import java.sql.Statement; | |
| import java.sql.DriverManager; | |
| import java.sql.ResultSet; | |
| import java.sql.ResultSetMetaData; | |
| import java.sql.SQLException; | |
| public class getServerConnection { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| array = [mat2cell(networkName),mat2cell(num2str(numberOfHydenLayers)),mat2cell(transferFunction),mat2cell(num2str(Delay)),mat2cell(num2str(sensitivity)),mat2cell(num2str(specificity)),mat2cell(num2str(accuracy))]; | |
| sucess = xlsappend('data.xlsx',array); | |
| %data.xlsx é o teu ficheiro. Ele vai adicionar à linha abaixo da ultima preenchida. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function [sensitivity,specificity,accuracy] = getPerformance(output,testFinalTarget) | |
| % | |
| % [sensitivity,specificity,accuracy] = getPerformance(output,testFinalTarget) | |
| % | |
| % based on: | |
| % | |
| % sensitivity = truePositives / (truePositives + falseNegatives); | |
| % specificity = trueNegatives / (falsePositives + trueNegatives); | |
| % accuracy = (truePositives + trueNegatives) / (truePositives + trueNegatives + falsePositives + falseNegatives); | |
| % |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% CREATING NETWORK | |
| beep | |
| networkName = 'layrecnet'; | |
| disp(strcat('network type: ',networkName)); | |
| % networkName = 'feedforwardnet'; | |
| % networkName = 'newrb'; | |
| beep | |
| Delay =input('Delay: '); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% CREATING NETWORK | |
| beep | |
| networkName = 'layrecnet'; | |
| disp(strcat('network type: ',networkName)); | |
| % networkName = 'feedforwardnet'; | |
| % networkName = 'newrb'; | |
| beep | |
| Delay =input('Delay: '); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package adefault.com.pointt; | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Matrix; | |
| import android.graphics.PointF; | |
| import android.media.Image; | |
| import android.util.Log; | |
| import android.view.LayoutInflater; | |
| import android.view.MotionEvent; |
OlderNewer