What order of polynomial in "polynomia​l interpolat​ion.vi"?

How to set the order of the polynomial in this distributed vi in LV5.0?
I tested it with value arrays for [X] and [Y] (100 points each),
and with x values inside the range of [X],
getting error -20050 (pole) all the time. It is not clear what order
of polynomials is used inside the vi (in code form).
Any thing out that is better than this one?
Thank you.

I think that the order of the polynomial is equal to the size of the input [X] and [Y] arrays. I'm no expert in this area, but apparently the Polynomial Fit VI uses Neville's algorithm as outlined here in the popular Numerical Recipes in C reference (I was pointed here from an NI KnowledgeBase entry):
http://www.ulib.org/webRoot/Books/Numerical_Recipe​s/bookcpdf/c3-1.pdf
Apparently, the problem is arising because your [X] and [Y] inputs, when fed through the algorithm, are resulting in something insoluble. I can get error -20049, for instance, when I feed in an X array with two consecutive elements of the same value. I think the reason for this is clear if you look at equation 3.1.3 in the reference link above (divide by zero).
Anyway, I doubt that you rea
lly want a 100th order polynomial fit just to interpolate your data, correct? You might just want to use General Polynomial Fit.vi, get a fit with your desired order, then plug your desired X value back into the result to get your interpolation.
Hope it helps,
John Lum
National Instruments

Similar Messages

  • I have iphoto 7.1.5 and need to upgrade to use icloud.  I have Mac osX 10.7.5.  Which upgrades and in what order?  Thank you.

    I have a Macbook 10.7.5.  Just got an iphone 4s and need to upgrade the iphoto on Macb to use icloud.  Can you tell me how to go about it?  That is, which upgrades do I need and in what order?  Thank you

    NOTE: if you upgrade to Mavericks you'll have to purchase iPhoto 9.5.1 from the App Store as your current version does not qualify for a free upgrade.
    OT

  • In what order are results from gather_database_stats 'LIST AUTO' returned?

    11.2.0.1.0. The results from the following seem to have some order to them (groupings of objects returned alphabetically). Didn't see anywhere in the docs to indicate what's getting returned in what order (empty stats, stale stats). I looked at table stats for one at the top of the list and it looks like the table had stats gathered recently, so i'm confused. I ran this from sqlplus:
    set serveroutput on size unlimited;
    DECLARE
    ObjList dbms_stats.ObjectTab;
    BEGIN
    dbms_stats.gather_database_stats(objlist=>ObjList, options=>'LIST AUTO');
    FOR i in ObjList.FIRST..ObjList.LAST
    LOOP
    dbms_output.put_line(ObjList(i).ownname || '.' || ObjList(i).ObjName || ' ' || ObjList(i).ObjType || ' ' || ObjList(i).partname);
    END LOOP;
    END;
    /

    Enlightened answer: "So bug off and work with what you get"
    The report was run on a database that doesnt have any auto stat collection occurring. There are 4000 items returned in the list. One of the items looks ok when you look at dba_tables (row count correct and last_analyzed recent). Just trying to figure out why this table was included in the list. Might be the way stats collected for it isn't updating some mechanism that gather_database_stats is utilizing. From what I can tell the order is 1) tables with no stats, 2) indexes with no stats, 3) stale tables.

  • In what order what components needed to be configured in ODI?

    I will be migrating data from TXT files to Oracle 10g.
    In what order what components/objects (e.g. Project, Models, topology, data store, metadata, schema etc) needed to be configured in ODI?
    This will help me go through ODI manual in a logical order.

    Hi,
    Have a look as a kick off,
    http://www.oracle.com/technology/obe/fusion_middleware/odi/ODIproject_flatfile-to-table/ODIproject_flatfile-to-table.htm
    Thanks,
    Guru

  • How do you add a directory to a manifest.mf file, andf in what order.

    How do you add a directory to a manifest.mf file in a JAR file, andf in what order.
    I know how to set a classs files and file class's & Main Class's not a problem, but how about a directory/folder.
    The Directory/folder contains class's. My prog can run the class's from a Jlist, as long as I set the classpath directly by control panel user varaibles manully or by a Bat file running in the back ground.
    any crazy ideas I'll excecpt and give a bloody good try.
    I tried.
    Class-Path: C:/bb/
    Class-Path:C/bb
    Class-Payh:bb
    Class-Path:bb/
    Class-Path: \bb\
    Class-Path:bb\ Not to sure if I've tried this, ttto many beers cans drunk at this stage.
    Friday night is beer night.
    WHAT am I doing wrong, or doing that can't be done with a JManifestMF file.
    Maybe Wrapper, and not the type that turn decks, and look at very low cameras while singing.

    If I open Font Book, and choose named font, I can see a list of symbols, e.g.
    If I open Character Viewer, and switch to Pictographs, I can see something like this
    so I assume that named font includes chars in the category Pictographs, which you can use at ease, I hope.
    If you need them frequently, you may create your custom keyboard layout, if you wish this, come back with what you wish.
    Screenshots are in Lion, but the procedure is the same, I hope.

  • What order do I reinstall drivers, hardware, and software?

    I have had to reinstall Windows 7 on my Pavilion dv6-6c13cl.  I would like to know what order do I reinstall the drivers, software and hardware? 
    I tried to reinstall yesterday and I couldn't reestablish an internet connection with Wifi.  Your help would be greatly appreciated.
    Thank you,
    HH1238
    This question was solved.
    View Solution.

    Hi:
    The only drivers you need to be concerned with installing in a particular order are:
    1. Install the AMD chipset driver and reboot.
    http://support.amd.com/en-us/download/chipset?os=Windows%207%20-%2064
    2. Install the graphics driver and reboot.
    3. Install the audio driver and reboot.
    4. Install the ethernet driver.
    Then you can install whatever drivers you need and then install whatever software you want.
    Wireless card:
    The parts list indicates your notebook has a Realtek 8188GN PCIe Half MiniCard (HMC) WiFi adapter - 802.11b/g/n 1x1.
    This would be the driver you need for that device.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-105197-1&cc=us&dlc=en&lc=en...

  • What order are find results in?

    When I use Spotlight and then select the "show in finder" option, what order
    are the results supposed to be in?  Alphabetical, you'd think, if "name" was
    selected.  But there seem to be many sublists in a large set of result, each
    restarting some sort of order every so many lines.  And why wouldn't clicking
    "name" again simply resort these?  It seems the only sort that affects the
    entire list in a predictable manner is sort by "type".  Have I inadvertently
    selected something wrong or am I missing something?  This makes spotlight
    much less useful to me.
    Anyone notice this?
    Mark

    Hi Ves,
      The AFCS dev guide mentions this in passing (3.1.5.1) but doesn't go into quite enough detail - we'll make a note to improve this for the next go-round.
      Essentially, all items for a given CollectionNode (from all of its nodes) are synched in the order that they were published, irrespective of which node they were published to. You can actually put a breakpoint down in MessageManager.receiveItems to watch this - all items for the entire collection are received in one big blob, then pushed onto an array, then sorted according to their timestamps and order, then sent as itemReceive up to the collectionNode.
      So yes, you could easily end up with an itemReceive for EVERYONE, followed by an itemReceive for HOSTS, then another one for EVERYONE. We make sure that they essentially come in the same order they did for people who were actually in the room at the time. For example in the chat pod, if I asked a question to the HOSTS node, which they answered on the public EVERYONE node, I'd want the items to be received in the right order, or the collective history wouldn't make sense.
    For separate CollectionNodes, their synchronization are kept separate (one at a time), since they're the result of individual subscribe() requests - the advice here is that if you have a series of items that have some dependency on order of arrival, you should make sure they're part of the same CollectionNode (which makes sense). If you need A to finish synching before B begins, put those items on different collectionNodes and call their subscribe() methods in that order. So, you can have it either way, depending on how you want to set it up.
    hope that helps
       nigel

  • Building a new PC, in what order should I install drivers, flash BIOS, etc?

    Hi all.  I've just decided to take the plunge and buy a K8T Neo (w/Athlon 64 3000) and was wondering if anyone (Bas?) could tell me in what order I should install the various drivers (and what versions are the most stable) for the board/chipset and whether I should flash the BIOS before or after installing Windows, yadda, yadda, yadda.
    Also, I am going to be using a pro-audio card (WaveCenter PCI) and was thinking it'd be a good idea to disable the onboard audio.  Is this possible/wise?
    Finally, for RAM I'm thinking of getting two sticks of Crucial 512MB DDR PC3200 (CT6464Z40B) as it appears there are at least two people out there with stable systems running this RAM.  Can anyone say otherwise?
    Thanks,
    Kogepan

    Thanks Bas, you're golden!

  • Smart Playlist plays in what order?

    A couple of years ago I made a Smart Playlist that collects everything of the gendre "podcast." This lets me listed to the podcasts continuously, instead of stopping after each one.
    I realize that I have no idea what order it's playing the podcasts in. It seems to be random, and when I go into the list in iTunes, sorting by each of the categories doesn't put them in the order they play.
    Is there a "shuffle" option being applied to the list?

    Adding "Playlist is Music" does not seem to be required on my iPhone or iPad, their playlists match the library that I auto-sync both devices to.
    First, right-click on the playlist name in your iTunes library and select "Copy to play order".  That saves the sort order of the playlist, and if you don't do that then the sorting on your device may not be what you expect.
    If that does not help some of your smart playlists, then right-click on the playlist name in iTunes and select "Duplicate".  Then get the new playlist sorted how you like and "lock" the sorting as described above, then delete the original playlist (re-name the copy if you'd like) and check/ change your sync settings to make sure the new playlist syncs to your device.
    Simon Chiplin wrote:
    Adding the "Playlist is Music" rule does sort the order correctly but it loses the "live updating" feature on my iPhone which allows the list to be repopulated without syncing back to the PC.
    Live Updating on the device has by and large been broken since iOS 3, unless you have a very simple smart playlist.  But if you include certain criteria like "Playlist Is ..." then Live Updating on the device doesn't work (even if the "source" playlist is synced to the device).  There are a few other smart criteria that break LU.

  • Resize AND resample... in what order?

    Hello all.  I've had to resample images up a bit on occasion for use at larger sizes (i.e. placement in Illustartor or INDesign at a larger size) and have done that with good results. However, I have a different situation now.
    I have an image that is 300 dpi. I am working on a huge display in InDesign, and I've had to place this image at 392%, which gives me an effective dpi of 76.
    The display company I'm working with wants the image placed at 100%, but needs only 100 effective dpi due to the nature of their technology.
    So I think what I need to do is both:
    - reSIZE the image to 392% AND
    - reSAMPLE the image to be 100 dpi.
    I believe this will have to be a two-step process using the Image Size palette. My question is, in what order do I take these two steps and what settings do I use in the Image SIze palette to get the best results?
    Using Photoshop CS5 12.0.4 on Mac OS 10.6.8.  Thank you!

    What they want is a 100 ppi image (you open it in Photoshop, go to Image Size and it says:the Resolution (in Document Size) is 100 pixels/inch. They want that image placed in InDesign at 100%-- not 125%, not 359%. They're trying to keep their processing time to a minimum by requiring that the resizing be done before image placement, rather than within the InDesign layout program, thereby minimizing the complexity of the art file and the amount of additional processing InDesign and their output program(s) need to handle.
    They don't CARE about the pixel dimensions.
    From the point of view of the display printing company... it's not their responsibility to scold customers for sending poor images. They receive images at all levels of quality, I'm sure.
    And I don't have time, responsibility or inclination to protect them by creating sample images and pointing out that their guidelines don't cover the gamut of crappy images that their customers may send. And no, I am not the one who chose this display printing company. I am helping out someone in a different department of our own company. She choses who prints their displays.
    The request I received was to take the images I've been given (and the "standards" under which those images were taken are also completely out of my control, so please don't go there) and make them look as good as possible while sending images within the specifications the display print company HAS set. I DO care about pixel size; however, I didn't know the best way to get to what they need with minimal degradation to existing picture quality.
    Sigh. Never mind. I'll figure it out the best way to get a 300 ppi image placed at 392% in InDesign downsized to 100 ppi and placed in InDesign at 100%. It's late on a Friday, I'm covering for several people, and I thought someone might already have encountered such a scenario.
    (BTW, I don't know why you made the assumption about "junior worker". I have expertise in some things, not as much in others. As is the case for everyone else in the world. And in these days of downsizing a lot of us are forced to wear hats that are not so familiar--and carefully choose the circumstances when rabble rousing might be worth the repercussions. This ain't one of those circumstances...)

  • Software updates - in what order?

    My brand new iMac was running 10.6.6 when I got it last week,  I need to do a lot of software updates.
    For years, on all our Macs, I've done software updates by checking with SU to see what needed to be updated and then doing the downloads from the Apple site and installing them manually.  This was easier in Tiger where there was a menu item, download update.  Now in SL I've had to find the updates myself at Apple since I don't see the option download update as a menu item and in help it indicates that the way to do this is to go to Apple and download.
    I've done all the necessary downloads.  Now I don't know what order to do the installs.
    I assume it makes sense to do the combo update to 10.6.8 first.  After that does it matter in what order I install the other updates.  I think the order listed here is arbitrary - or not?  Do you notice if anything relies on something else being updated first before the next item is installed??
    Thanks,
    Mrs H

    And I get tired of posters stating that nonsense. What on earth has Permissions to do with viruses??
    For those who prefer facts to opinions:
    What are permissions?
    Every file and folder on a Mac OS X hard drive has a set of permissions—settings that determine which user(s) have access to each item, and exactly what that access is. For example, permissions dictate whether or not a particular user can open and edit a particular file. But permissions also determine which items the operating system—or specific parts of it—can access and modify, and which files are accessible by applications.
    What does repairing permissions do?
    The Repair Disk Permissions function—the process that actually performs the task of repairing permissions—examines certain files and folders on your Mac’s hard drive to see if their current permissions settings are what Mac OS X expects them to be; if discrepancies are found, the offending permissions are changed to match the expected settings.
    (In Mac OS X 10.3 and later, repairing permissions also performs one other, unrelated, task: If the invisible /tmp symbolic link—which is linked to the /private/tmp directory—is missing, the link will be recreated.)
    Why is it necessary to repair permissions?
    If permissions on particular files are “incorrect”—i.e., not what Mac OS X expects them to be or not what they need to be for your Mac’s normal operation—you can experience problems when the operating system tries to access or modify those files. For example, you may have trouble logging in to your account, printing, launching applications, or even starting up your Mac. Similarly, if an application—from Apple or a third-party developer—needs access to a particular file or folder to function, and the permissions on that item have changed in a way that prevents such access, the application may not function properly (or at all). The Repair Disk Permissions function can fix such problems by ensuring that certain files have the correct permissions.
    There’s also a security element here: Many system-level files have permissions set a particular way so that applications or users that shouldn’t be meddling with those files can’t. If the permissions on certain system-level files somehow get changed so that access to those files is no longer restricted, you’ve got the potential for a major security issue. Repairing permissions can resolve such issues by resetting permissions on those files to prevent unauthorized access.
    How do I repair permissions?
    The Repair Disk Permissions function is part of Apple’s Disk Utility (in /Applications/Utilities). After launching Disk Utility, select the desired disk—generally your startup disk—in the list to the left, then click the First Aid tab. At the bottom of the First Aid panel, click the Repair Disk Permissions button. (You could instead use the Verify Disk Permissions option to preview any potential repairs before performing them, but for most users there’s little benefit from this extra step.)
    Permissions can also be repaired via the shell (Terminal) by using the command sudo diskutil repairPermissions /. However, it’s unlikely that the typical user will ever need to perform the task in this manner. It’s useful if for some reason Disk Utility itself won’t launch, or for repairing permissions on a remote Mac when connected via Remote Login (SSH), but otherwise you’re just as well served using Disk Utility.
    How does the Repair Disk Permissions function know what the “correct” permissions are?
    When you use Apple’s Installer utility to install software (such as Mac OS X itself or an OS X update), the installation package (the .pkg file you double-click to begin installation, or that Software Update downloads in the background for an automatic installation) generally leaves behind a receipt—a smaller Mac OS X package that includes information about every file installed, including the permissions each file should have. This receipt is placed in /Library/Receipts. When you run the Repair Disk Permissions function, it examines the receipts in the /Library/Receipts directory of the disk being repaired—which means the feature works only on volumes with Mac OS X installed—and compares the information in the receipt with the actual files on your drive. If the Repair Disk Permissions function finds a file with permissions that differ from what a receipt claims they should be, that file’s permissions are reset to their receipt-specified values. (If you’re curious about the information contained in a receipt, the easiest way to view it is to use the utility Pacifist; simply drag and drop the appropriate receipt into the Pacifist window and you’ll be presented with a list of all files installed by the similarly-named installation package, along with each file’s original permissions.)
    It’s worth noting here that although the function is called “Repair Disk Permissions,” what is actually happening is that files’ permissions are being reset or restored to a particular state. It’s possible—though not common—for a particular file’s permissions to differ from what a receipt claims they should be without those permissions actually being “broken.”
    Are all files affected by Repair Disk Permissions?
    No. As you may have inferred from the above description, only those files installed using OS X’s Installer utility and whose installation packages leave behind a proper receipt in /Library/Receipts are affected by the Repair Disk Permissions function. This means that most of the files affected by the Repair Disk Permissions function are system-level files, application files, or system add-ons—not applications installed by drag-and-drop, and not your documents or other user-level files.
    If repairing permissions is useful in general, why doesn’t Apple recommend it as routine maintenance?
    Apple does, quite explicitly:
    It’s a good idea to repair disk permissions as a regular maintenance task after upgrading or installing new software.
    That’s taken from Mac Help—in both Panther and Tiger—right on your Mac., and also applies to Leopard and Snow Leopard. Similar statements can be found in other Support articles, one of which is:
    http://docs.info.apple.com/article.html?artnum=25751
    which applies to all versions of OS X up to 10.6, but note the comments at the end of the article relating to Snow Leopard.

  • Install instructions for CS6 upgrade for WIndows missing - in what order should files be run?

    After over 14 days of dealing with the idiots at Adobe Support, opening and closing of 2 cases multiple times, promised emails not being sent (and being blamed for having my email set up to filter out Adobe emails), attempts to charge me for the already approved "free" upgrade, and then having an order for a physical disk version of the CS6 upgrade cancelled by some bonehead, I finally was able to download the CS6 upgrade files.  Only to discover that there are no installation instructions for Windows if you did not use the Akamai download manager (which I did not).
    There are a total of 6 files in the download directory, all downloaded from the CS6 upgrade download page. 
    - In what order should the files be run?  Just run the .exe files, or do some files need to be extracted/unzipped first?
    A second question: my CS5.5 version was never installed, and never registered. 
    - Will the CS6 upgrade accept its serial number directly, or do I have to do something else through Adobe Support?
    --  WTW

    Which files: all of them on the CS6 Production Premium upgrade download page.
    ProductionPremium_CS6_LS7.7z
    ProductionPremium_CS6_LS7.exe
    PremierePro_6_Content_LS7.7z
    PremierePro_6_Content_LS7.exe
    Illustrator_16_Content_LS16.exe
    Download_and_Install_Instruction_all.pdf
    The last one is useless.
    The Speech Analyzer Models were downloaded separately, from another page.  I assume they should be installed after everything else is installed and working.

  • In what order are msgs consumed with single sess & multiple async consumers

    Sun MQ will serialize delivery of messages when you have a single session and multiple asynchronous consumers created from that session. I am trying to find out what is the order in which the messages will be delivered by the session to the message listener.
    So if I have 10 consumers on 10 destinations, each with 100 messages, in what order will messages be passed to the message listener.
    Thanks
    Aspi Engineer
    Putnam Investments

    In our testing, we have found that the consumerFlowLimit implementation will guarantee that you'll receive your messages out of order. What happens is that messages will be put in the consumer buffer and they won't be available for round-robin delivery to the other consumers (even if they are idle). I'd recommend setting the consumerFlowLimit=1 which minimizes the impact of this, but every other message will still be out of order (ie consumer #1 grabs messages 1&2, consumer #2 grabs messages 3&4, etc; so that they will process 1&3 together, and 2&4 together. I consider this a very serious bug of openMQ and wish we could disable the consumerFlowBuffer all together to get guaranteed processing order from the queue.
    Edited by: Pancetta on Jun 24, 2010 9:33 AM

  • Need suggestions for what order to install software on new computer

    I have had an iMac (with Panther) for 3 1/2 years but have never made any major changes to it and plan to leave it as it is. We got a second computer yesterday, one of the last of the white iMacs, via an Apple reseller. It came with Tiger 10.4.6 installed with a Leopard 10.5 drop-in disc and an iLife 08 disk. I set up the new Mac so I have a web connection, but have not yet transferred any data from my back-up external hard-drive, nor have I attempted to install Leopard or iLife 08. I'm looking for recommendations for what order I should do these tasks. Or does it matter?
    That is, should I play around with Tiger for awhile (I've never used Tiger before), move all my data and confirm all is OK before adding Leopard?
    Or should I get Leopard on the computer right as the next step?
    Should iLife 08 be installed before or after Leopard? or is either order OK?
    Any suggestions that would be helpful to me?

    I concur with the others on going straight to Leopard. Then resolve any issues before installing non-Apple applications (or older Apple ones, for that matter).
    However, make sure ANY applications are Leopard-compatible before you install them.
    And note that the iLife '08 installer is for a 30-day trial installation (fully functional for those 30 days) after which it needs to be purchased.

  • HT201285 What order does spotlight search display??

    I know that this search displays the results by app. But within the app how are the results displayed? For example, if I typed in ok, and all my text messages that have the word ok in them pop up what order are those in if any?
    Also, does anybody konw exactly how long deleted messages will appear in the spotlight search? Or how far back the search goes?

    I can't be certain but they appear to be in reverse chronological order.
    Old messages will appear unti lthe cache gets written over (or is deleted by restoring the phone as new).

Maybe you are looking for