How does xMII calculate a time weighted average?

I am in the process of doing data validation for tag query result sets from IP21 process data.  The comparison is against an IP21 add in to Excel which generates numbers that don't correspond to the numbers generated by xMII.  The add in appears to be generating values according to a Time Weighted Average but it is returning different numbers.  The differences are not large, but it is a virtual certainty that a plant manager or process engineer will take issue.  So we (I and my client) would like to know how to explain the difference in the calculation results.  We suspect that it involves interpolation for missing data, but would like to know for sure.  We are also checking the IP21 algorithm(s) to make sure we understand how it works.  Any insight would be appreciated.

Rick/Jeremy,
I am still not getting the same values.  My correlation testing is in Excel 2003.  In xMII I have the number format set to 0.000000.  Typical values in the result set are coming in with five decimal place accuracy.  I am using one hour's data at 1 minute intervals with date accuracy to the second and the data is compressed to 52 actual datapoints.  The time range is 11/07/2007 00:00:00 to 11/07/2007 01:00:00.  It is in HistoryEvent mode.  The row count is set to 20000. 
When I run the TWA from xMII, I get 22773.576740. 
When I ran my first algorithm in Excel, I get 22767.37321.  When I made the change to what Rick said, I get closer but am still off and get 22769.35835.  Can either of you (or anyone else) explain the delta?  I have rerun both calculations twice on all three sides and get the same results. 
Here is my data:
DateTime ActualValue
11/07/2007 00:00:01 23841.572266
11/07/2007 00:01:01 23608.240234
11/07/2007 00:02:01 23238.177734
11/07/2007 00:03:01 23373.197266
11/07/2007 00:04:01 23244.857422
11/07/2007 00:05:02 23408.943359
11/07/2007 00:06:01 23138.939453
11/07/2007 00:07:01 23325.080078
11/07/2007 00:08:01 23433.609375
11/07/2007 00:10:01 22783.115234
11/07/2007 00:11:01 22642.421875
11/07/2007 00:12:01 22226.654297
11/07/2007 00:13:01 22741.773438
11/07/2007 00:14:01 22611.898438
11/07/2007 00:16:01 22810.580078
11/07/2007 00:17:01 22404.023438
11/07/2007 00:18:01 22627.966797
11/07/2007 00:19:01 22672.619141
11/07/2007 00:20:02 22268.031250
11/07/2007 00:21:01 21770.136719
11/07/2007 00:22:01 22877.025391
11/07/2007 00:23:01 22565.330078
11/07/2007 00:24:01 22781.949219
11/07/2007 00:25:01 22324.345703
11/07/2007 00:26:01 22170.953125
11/07/2007 00:27:01 21960.464844
11/07/2007 00:30:01 22495.685547
11/07/2007 00:31:01 21899.714844
11/07/2007 00:32:01 22487.603516
11/07/2007 00:33:01 22723.382812
11/07/2007 00:34:01 22461.189453
11/07/2007 00:35:01 22823.869141
11/07/2007 00:36:01 22599.085938
11/07/2007 00:37:01 22902.572266
11/07/2007 00:41:01 22894.148438
11/07/2007 00:42:01 22724.144531
11/07/2007 00:43:01 22659.437500
11/07/2007 00:44:01 23105.324219
11/07/2007 00:45:01 22634.763672
11/07/2007 00:46:01 22929.582031
11/07/2007 00:47:01 22475.185547
11/07/2007 00:48:01 22739.755859
11/07/2007 00:50:01 22864.958984
11/07/2007 00:51:01 22556.917969
11/07/2007 00:52:01 22794.998047
11/07/2007 00:53:02 22934.748047
11/07/2007 00:54:01 23206.296875
11/07/2007 00:55:03 22412.509766
11/07/2007 00:56:02 22935.718750
11/07/2007 00:57:01 23924.460938
11/07/2007 00:58:01 22918.369141
11/07/2007 00:59:02 23048.748047
Message was edited by: MAppleby
        Michael Appleby

Similar Messages

  • How does Calendar calculate travel times?

    When I select the Travel Time function for an event in Calendar, it tells me there is a 35 minute travel time from home to my scheduled event destination. However, when I transfer over to the Maps application to get the directions from my home, the Maps application tells me the travel time is 52 minutes, which is more accurate.  I have no previous events on my calendar that the application could use as a reference point, and the time of the event is outside of the working hours I setup in Calendar, so it is not using my work location as a reference point.  What can explain the travel time discrepancy between Calendar and Maps?

    If I understand the feature correctly, this is not an Exchange supported function.  Therefore, you won't be able to use this option for Exchange.  iCloud Cal supports it.  Interestingly, i too have both calendars and use exchange almost entirely as well - when I change to entering an exchange appt, the travel time option disappears totally.  It sounds like you have the options still available. 
    Sorry, no answer to your problem here but maybe this adds another piece of the puzzle.

  • How does the GR processing time affect the scheduling of the process order & the latest start date in the operation.

    Hi
    Can anyone explain  how does the GR processing time affect the scheduling of the process order & the latest start date in the operation overview.

    Hi
    GR processing time means number of workdays required after receiving the material in storage.
    Check this link:GR Processing time
    Regards,
    Anupam Sharma

  • How do I calculate a time such as work hours

    How do I calculate a time such as, a cell may have any time valve pertaining to daily work hours. 8:00 or 7:00 or 10:30. My question is I want another cell to represent any amount over 8:00. Like in a nine hour day you would have 8:00 with 1:00 overtime

    This may help:
    The first row is a header.
    select the three columns and format as  "Duration":
    now enter the formulas as:
    B2=IFERROR(IF(A2>DURATION(0, 0, 8), DURATION(0, 0, 8), DURATION(0, 0, 0)), "")
    C2=IFERROR(A2-B2, "")
    select B2 and C2, then fill down as needed

  • How does SAP calculate tax for employees who pay SFSS(Australia)?

    Hi,
        Good day. How does SAP calculate tax for employees who pay SFSS (Student Financial Supplement Scheme). The EE is under tax scale 7 - No Leave Loading. Please advise. Thank you.

    hai..
    check QTAX sub schema

  • How can i calculate execution time for methods?

    I'm making a project that i want to calculate execution time for a
    method in "miliseconds" or "microseconds".You see,I have a sort algorithm and i want to calculate execution time of this algorithm.How can i do?
    Thanks...

    Just remembered.
    The answer you get isn't trustworthy below a hundred millis, so you may need to sort a hundred or a thousand times to get a reasonable elapsed time. You also need to run the test five or ten times and take an average. In Windows you should fire up the Task Manager and be sure that your other CPU usage is as near to zero as you can get.

  • How does optimiser calculate profit for profit maximisation

    Hi Experts,
    I have a basic question-
    when we work on 'profit maximisation' how does the system calculate profits. As I understand the calculation is revenue- total cost. costs is what we define in the system. But how is the revenue calculated?
    What it the logic where profit maximisation is selected over cost minimisation?
    Regards
    Manotosh

    Hi Manotosh,
    For answering the first part of your question, I am just copy pasting the F1 help for the field from Optimizer profile:
    "Profit Maximization
    Use
    It is the optimizer's objective, when using either of the two possible options: cost minimization or profit maximization, to determine the most cost-effective solution based on the costs defined in Cost Maintenance.
    If you choose Profit Maximization, the system interprets the Penalty for ND field (penalty costs for non-delivery) in the product master (tab page SNP 1) as lost profits. In this instance, the total profit achieved by a plan is calculated according to the following formula: Total of all delivered location products, multiplied by the penalty costs for non-delivery that have been defined for these location products, minus all the costs defined in the optimizer cost profile (such as production costs, storage costs and transportation costs). The total profit is displayed, when you run the optimizer in interactive planning within Supply Network Planning (on the Solutions tab page)."
    For second part, someone who has worked on solution design in a project where Optimizer was used might possibly give a good answer. I am not very sure, though I can make a guess as follows:
    You would go for cost minimization in a scenario where your requirement would be to minimize overall cost, even if it leads to non-fulfillment of requirement. Could be a scenario where e.g. lost sales are not very critical for you. e.g. products like generic bulbs, etc. On the other hand, where you want that the requirements fulfillment should also be one of the key objectives, you would go for profit maximization. This could be a case where brand plays a major role e.g. TV, costly gizmos, etc.
    Hope someone else will correct me, or add to this.
    Thanks - Pawan

  • How does one SUCCESSFULLY transfer Time-Machine backup to a new (larger) hard disk drive using OSX 10.5.8

    I have read a number of articles about how to transfer a complete Time-Machine backup to a new (larger) hard disk-drive.  Some of these articles are specifically for OSX10.6 users, which are not applicable to me since I am operating with OSX 10.5.8.
    However, I have tried several times to use the Disk Utility 'Restore' function, dragging my old time-machine volume into the 'Source:' box and my new volume into the 'Destination:' box.  This works, of sorts, BUT the newly created volume on the new larger hard disk-drive remains the same size as the original volume on the old Time-Machine HDD, with no apparent way of increasing the new volume's size.  So I am not really any better off:
    E.g. the total capacity of my new HDD is stated by 'Disk Utility' to be 465.8 GB, of which I'm told 228.2 GB is used for the Backups.backdb folder, but only 4.6 GB of free space is actually available.  Yet under the 'Partition' tab of 'Disk Utility' it tells me that there is still 236.4 GB of available space.
    Does anyone know how to resolve this issue without upgrading to OSX 10.6?

    First, how did you prepare your new drive?  See:
    Drive Preparation
    1.  Open Disk Utility in your Utilities folder.  If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (for Intel Macs) or APM (for PPC Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    If you plan to partition this new drive then be sure you create a larger partition for TM than your old volume.
    Next, clone your old TM volume:
    Clone using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the destination volume from the left side list.
    3. Click on the Restore tab in the DU main window.
    4.Check the box labeled Erase destination.
    5. Select the destination volume from the left side list and drag it to the Destination entry field.
    6. Select the source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

  • How does LabVIEW calculate filter coefficien​ts?

    I am attempting to develop a model for a post - processing routine that uses a cascaded IIR lowpass filter, in order to demonstrate to a customer the performance of our data acqusition system, without divulging our proprietary source code. Does anyone know how LabVIEW calculates filter coefficents?

    Greetings efelgemacher!
    I'm going to take a guess, but don't quote me on this. Both Matlab and Labview use IIR to synthesize analog filter prototypes....in a way, it's sort of "dumbing down" of an IIR response to get an analog equivalent. If you "drill down" through any of the Analog filter vi's you will see that they ALL use Digital filters just with analog paramaters plugged in.
    At any rate, the polynomials have been catalogued for decades now, and I suspect they reside in a library somewhere in Labview..at least in "low resolution" form, rather than being generated from scratch every time. It would take very little reiteration to generate a couple of more decimal places using the IIR engine.
    Again, just an educated guess.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • How does someone get their Time Capsule serviced?

    Hi all,
    My 500gb Time Capsule has started to show the dreaded "Volume Can Not Be Mounted" error that I've seen mentioned on this message board a few times. This has been happening for both my computer (a MBP) and my fiance's computer (a MB.)
    I tried doing a quickformat of the disk, and then after that was complete, tried backing up again and got to about 1.5gb before it failed. The disk is again, not mountable.
    Thinking there might be a bad sector on the drive, or something similar, I tried doing a 1-pass secure erase, figuring that it would force the drive to go through every sector and mark bad sectors.
    Well, it's been 4 days now and that first pass of the secure delete is still going. I think my Time Capsule is just busted (the router aspect still works.)
    I tried going to the self-serve warranty pages, but after putting in all my info I'm presented with two options (both of which don't seem valid.) One was for the Genius Bar, but I can't seem to schedule a Time Capsule appointment online with them (only Mac, iPhone or iPod.) The other was for authorized service centers (all of them seem to be Carry-In Mac Only).
    Do I schedule a Mac appointment with the Genius Bar? Can I just do an online warranty repair/replace? Maybe single pass secure erases are supposed to take over 4 days? (I really doubt that...)
    Thanks!
    Nick

    I think you'll have to talk to Apple tech support (and they'll have you do all kinds of tests), or else you can go see a "genius," which would get you a new Time Capsule more quickly if yours is defective. Sign up for a "Mac" appointment.

  • How does lion operate with time machine?

    Before downloading Lion, I have an external hardrive which updates automatically via Time Capsule. On Lion does Versions do the same thing and/or is there any problem between operating Time Capsule and Versions at the same time?

    No "versions"does not do the same thing as TM. There should be no issue running versions and your TM backup in Lion.

  • Sooo... How does one restore a Time Machine backup to an Air?

    My girlfriend is getting an hand-me-down air to replace her white MB whose logic board recently died. It comes in today, I was going to restore, I realized that I can't boot up and select that drive without starting up into a OS X dvd. How the heck are you supposed to restore an Air? Is there an elegant Apple solution? Everything I seem to find on the 'net is pretty difficult/ridiculous.
    Thanks...

    If the computer is bootable, you can run the migration assistant from the applications folder (assuming you have enough free space on the harddrive).
    Otherwise, there's a number of ways to remote reinstall or restore from the MacBook Air without a superdrive. A USB superdrive or other optical drive would be fastest, but the remote disk option is also possible with a little patience and a lot of time.
    http://support.apple.com/kb/HT2129

  • How does it gets the time

    hi all ,
    declare
    mydate date ;
    begin
    mydate := sysdate ;
    dbms_output.put_line(mydate);
    end;
    i have an existing script that looks like above except it writes into a table e.g tbl1 , Field1
    what i dun understand is the output shown is : 31-JUL-06
    but why it comes with the time when i select * from tbl1 ? e.g 7/31/2006 3:01:01 AM
    how come the date format is different as i do not see any to_char(sysdate , date_format_expression) ??
    is this something defulted by Oracle ?
    tks & rdgs

    ---See the difference:
    SQL> declare
      2  mydate date ;
      3  begin
      4  mydate := sysdate ;
      5  dbms_output.put_line(mydate);
      6  end;
      7  /
    31-JUL-06
    PL/SQL procedure successfully completed.
    SQL> select mnt from visit;
    MNT
    09-JAN-06
    10-JAN-06
    SQL> alter session set nls_date_format='MM/DD/YYYY HH:MI:SS AM';
    Session altered.
    SQL> select mnt from visit;
    MNT
    01/09/2006 07:43:01 PM
    01/10/2006 07:43:21 PM
    SQL> SELECT SYSDATE FROM DUAL;
    SYSDATE
    07/31/2006 09:01:35 AM
    SQL> declare
      2  mydate date ;
      3  begin
      4  mydate := sysdate ;
      5  dbms_output.put_line(mydate);
      6  end;
      7  /
    07/31/2006 09:02:58 AM
    PL/SQL procedure successfully completed.

  • How does airplay interact with Time Machine?

    I just purchased a MacBook Pro, but the 256GB of flash storage is not going to be enough for my projects and media.  My iTunes library has become pretty extensive, so I'm wondering if I'll be able to stream to my TV the content in my iTunes using Time Machine in combination with Apple TV?  Anyone have this set up?

    Time Machine is software that backs up the contents of your Mac.  You will not be able to use those backups for everyday use to stream media over your network.
    Suggest that you add another external hard drive and move your iTunes library to that drive.
    Then Time Machine will backup both your Mac and the contents of the external drive. So, you have "originals" on one drive and "backups" on another. If one drive fails, then you at least have a copy on the other drive.

  • How does iOS4 determine the time?

    I've seen several topics but no resolution. What I thought initially was a Telus (Canada) thing, I've instead come to realize it must be a iPhone or iOS4 thing ...
    That is, my new iPhone 4 was born 45 seconds ahead of accurate time, and it has since lost ~1 sec per day and is now 13 sec behind. I've just been around the world, and it cannot be a Telus (or any carrier) problem because I've employed pre-paid SIMs in Jo'berg (Vodacom) and in Brisbane (Optus), to return to Canada, re-insert the Telsus SIM, and the clock never changed ('cept to change relative to the local time zone).
    It's ironic that I forsake an accurate wrist watch in lieu of the extra $$ for the quality the iPhone generally represents. There are clock apps that will show me accurate time via network time servers (eg, Emerald-Sequoia), but iOS4 (and Apple) disallows 3rd-party synchronization ... which is reasonable, but why doesn't Apple create and use a similar app for providing accurate time?
    40 seconds, or where (when?) my iPhone will eventually end up are not trivial -- even to be 5 seconds off should be an embarrassment for Apple in this day&age. In what time zone will my iPhone eventually end? I simply do not get it??
    my CA$0.02
    Cheerios from the Avalon Peninsula

    Graham Outterside wrote:
    As I said elsewhere in another thread, on Monday, at Canning Town station, the cell clock was literally hours out and as soon as I changed cell at London City Airport a couple of stations down the track, it was back to normal.
    Hmmmm ... all seems plausible. Please explain " ...as soon as I changed cell at London City Airport a couple of stations down the track ..." relative the plausibility of my swapping SIMs twice in 2 different counties, on both sides of the IDL, then to return to Canada, in a location other than my home, and still have the minute+second hands in the same place(?)
    Thanx for your enlightenment

Maybe you are looking for

  • AT Commands for Verizon Wireless USB760?

    This cellular modem seems to respond to some AT commands (like AT+CSQ and AT+IPR?), but not other (like AT+CREG?).  Novatel Wireless technical support and Verizon Wireless technical support have not responded to my queries regarding what AT commands

  • How to set up different virtual LANs (using the E3200)?

    Hi. I would like to set up different virtual LANs (using the E3200) so that I can have two different networks that can't access each other. The E3200 is connected to a modem for internet access. I would like both networks to have access to the intern

  • URGENT HELP NEEDED PLEASE - z10

    Hi all, I'm new to these forums because this is the first time my BB Z10 has played up on me Bascially, my WiFi connection is strong and connected but my device always reverts to using my Mobile Network for data. Also, if it does use WiFi it is slow

  • Issue with Multilevel subquerying, correlating out and inner object failing

    Hi, I have a peculiar situation with no idea how to overcome this. Please consider the following example. I have Table T1 with columns C1 , C2 , C3 and Table T2 with columns D1, D2, and D3. Here i need to fetch the column C1 and D1 when C2 = D2 or wh

  • Calling Tcode Solar02 in ITS - Nodes getting Locked

    Dear all, To call tcode solar02, from web i am using the ITS url , http://host:port/sap/bc/gui/sap/its/webgui?~transaction=solar02 But when i access  the nodes,  through this link the nodes are getting locked automatically. can i use ITS url for sola