Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1227.Text data calculation -- How to calculate the total energy consumption in group?

User: Verotiana -- 2014-08-05          << 1226  1228 >>
Hits: 3039
Type: Text data calculation   
Search all Text data calculation examples
Description:
How to calculate the total energy consumption for each device? This calculation is  
to be done for up to 10000 devices. 
Total i = energy in transmit mode i + energy in receive mode i + energy in idle  
mode i + energy in sleep mode i  
Input Sample:
1,Energy in Transmit mode = 0.007811 
1,Energy in Receive mode = 0.044860 
1,Energy in Idle mode = 0.035994 
1,Energy in Sleep mode = 0.023000 
2,Energy in Transmit mode = 0.007891 
2,Energy in Receive mode = 0.060684 
2,Energy in Idle mode = 0.035991 
2,Energy in Sleep mode = 0.004000 
3,Energy in Transmit mode = 0.007703 
3,Energy in Receive mode = 0.078177 
3,Energy in Idle mode = 0.035989 
3,Energy in Sleep mode = 0.065000 
...
Output Sample:
Total 1 = 0.111665 
Total 2 = 0.108566 
Total 3 = 0.121869 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to 'Paragraph' 
* set 'replace with pattern' to: 
 
* click 'advanced' tab, set 'run following for each matched unit' to: 
 
* click 'settings' tab, set para start to: "other", and set following entry to: 
 
* set para end to: "None" 
3. click "replace", done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Screenshot 3:  Replace_Settings_Window


Similar Examples:
How to calculate sum value of every column? (67%)
How to calculate sum of every column and keep original columns? (61%)
How to calculate the percentage of the number in the column1? (59%)
How to calculate summary of every column in a text file? (59%)
How to calculate the sum of the numbers in the same column? (56%)
How to calculate the absolute average value of every 2 columns? (55%)
How to caculate the last day of a month? (54%)
How to calculate the average of the numbers in the same column? (53%)

Check Demo of Text data calculation
Keywords:
previous  mode  trans  total  group  calculate  non  paragraph  calculation  paragra  calculate text data  start with end with  calculation in text file  replace with data  data replace  replace end with  match words  end with