Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<math.h>
- using namespace std;
- int main()
- {
- float saida[]={0.5,0.8,0.7,0.6,0.9};
- float resposta[]={1,0,0,0,0,0};
- float custo[]={0.0};
- float MSE = 0;
- int i;
- for(i=0;i<5;i++){
- custo[i]=pow((saida[i]-resposta[i]),2);
- MSE += custo[i];
- cout << custo[i] << endl;
- }
- cout << MSE << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement