Thursday, 6 October 2016
Why use neural networks?
Neural networks, with
their remarkable ability to derive meaning from complicated or imprecise data,
can be used to extract patterns and detect trends that are too complex to be
noticed by either humans or other computer techniques.
A trained neural network
can be thought of as an "expert" in the category of information it
has been given to analyse.
This expert can then be used to provide projections
given new situations of interest and answer "what if" questions.
Other advantages include:
1.
Adaptive learning: An
ability to learn how to do tasks based on the data given for training or
initial experience.
2.
Self-Organisation: An
ANN can create its own organisation or representation of the information it
receives during learning time.
3.
Real Time Operation: ANN
computations may be carried out in parallel, and special hardware devices are
being designed and manufactured which take advantage of this capability.
4.
Fault Tolerance via
Redundant Information Coding: Partial destruction of a network leads to the
corresponding degradation of performance. However, some network capabilities
may be retained even with major network damage.
What is a Neural Network?
An Artificial Neural Network (ANN) is an information processing paradigm that is inspired by the way biological nervous systems, such as the brain, process information. The key element of this paradigm is the novel structure of the information processing system. It is composed of a large number of highly interconnected processing elements (neurones) working in unison to solve specific problems. ANNs, like people, learn by example. An ANN is configured for a specific application, such as pattern recognition or data classification, through a learning process. Learning in biological systems involves adjustments to the synaptic connections that exist between the neurones. This is true of ANNs as well.
Saturday, 9 July 2016
Create a class called shipthat incorporates a ship’s number and location. Use the
approach of Exercise 8 to number each shipobject as it is created. Use two variables of
theangleclass from Exercise 7 to represent the ship’s latitude and longitude. A member
function of the shipclass should get a position from the user and store it in the object;
another should report the serial number and position. Write a main()program that creates three ships, asks the user to input the position of each, and then displays each ship’s
number and position...
#include<iostream>
#include<conio.h>
using namespace std;
class ship{
private:
int serial;
static int num;
int degrees;
float minutes;
char direction;
public:
ship(){
num++;
serial = num;
}
void getLoc(){
cout << "Enter Degrees: "; cin >> degrees;
cout << "Enter Minutes: "; cin >> minutes;
cout << "Enter Direction: "; cin >> direction;
}
void reportSerLoc(){
cout << "Ship Number " << serial << " Is At " << degrees << '\xF8' << minutes << "\'" << direction << endl;
}
};
int ship::num=0;
int main(){
ship s1,s2,s3;
cout << "Enter Location Of 1st Ship" << endl;
s1.getLoc();
cout << "Enter Location Of 2nd Ship" << endl;
s2.getLoc();
cout << "Enter Location Of 3rd Ship" << endl;
s3.getLoc();
s1.reportSerLoc();
s2.reportSerLoc();
s3.reportSerLoc();
}
ADD Any Two Number..........
#include <iostream>
#include <conio.h>
using namespace std;
class Int{
private:
int intvar;
public:
Int(){
intvar = 0;
}
Int(int x){
intvar = x;
}
void display(){
cout << intvar << endl;
}
void add(Int x, Int y){
intvar = x.intvar + y.intvar;
}
};
int main(){
Int a(5),b(45);
Int c;
c.add(a,b);
c.display();
}
Repeat Again any Sentence/Paraghraph........
#include <iostream>
#include <conio.h>
using namespace std;
class count{
private:
int serial;
static int num;
public:
count(){
num++;
serial=num;
}
void reportSerial(){
cout<<"I'm Object Number "<< serial << endl;
}
};
int count::num=0;
int main(){
count f1,f2,f3;
f1.reportSerial();
f2.reportSerial();
f3.reportSerial();
}
Thursday, 7 July 2016
Transform the fraction structure from Exercise 8 in Chapter 4 into a fraction class. Member data is the fraction’s numerator and denominator. Member functions should accept input from the user in the form 3/5, and output the fraction’s value in the same format. Another member function should add two fraction values.
Write a main() program that allows the user to repeatedly input two fractions and then displays their sum. After each operation, ask whether the user wants to continue....
#include<iostream>
#include<conio.h>
using namespace std;
class fraction{
private:
int numerator, denominator;
char c;
void dispFct()
{
cout<<numerator<<"/"<<denominator;
}
public:
void getFct(){
cout<<"Enter fraction: "; cin>>numerator>>c>>denominator;
}
void addFct(fraction x, fraction y){
numerator=x.numerator*y.denominator+x.denominator*y.numerator;
denominator=x.denominator*y.denominator;
+cout<<"Sum = "; dispFct();
}
};
int main()
{
fraction f1,f2,f3;
f1.getFct();
f2.getFct();
f3.addFct(f1, f2);
}
Subscribe to:
Posts (Atom)