inflation with different rates per year

what I'm doing wrong here
try to get the compound inflation 20 years (from 2001) where the inflation rate is increasing every year.

Miss me something basic, my swollen amt is coming nothing when I use

inflated_amt [iteration_number + 1] = inflated_amt [iteration_number] * (1 + inflation_rt [cv ()])

If I change

inflated_amt [iteration_number + 2] = inflated_amt [iteration_number + 1] * (1 + inflation_rt [cv ()])
I'm close, but miss me my first year (2001)

in any case, here's my query

with
inflation_table as
(select level j, level + yr 2000, level * inflation_rt.01)
of the double
connect by level < 21),
base_amount_table as
(select level * 10 base_amt from dual connect by level < 3)

Select yr, inflation_rt, base_amt, inflated_amt
to inflation_table, base_amount_table
model update return lines
partition (base_amt)
(j) dimension
measures (inflation_rt, year, base_amt inflated_amt)
iterate rules (20)
(

inflated_amt [iteration_number + 1] = inflated_amt [iteration_number] * (1 + inflation_rt [cv ()])
)

Published by: pollywog on March 25, 2010 12:51

In fact, you probably need this:

with inflation_table as (
                         select  level j,
                                 level + 2000 yr,
                                 level * .01 inflation_rt
                           from  dual
                           connect by level < 21
                         ),
    base_amount_table as (
                          select  level * 10 base_amt
                            from  dual
                            connect by level < 3
                         )
select  yr,
        inflation_rt,
        base_amt,
        inflated_amt
  from  inflation_table,
        base_amount_table
  model
    partition by(base_amt)
    dimension by(j)
    measures(inflation_rt,yr,base_amt inflated_amt)
    rules
    (
     inflated_amt[1] = inflated_amt[cv()] * (1 + inflation_rt[cv()]),
     inflated_amt[j > 1] order by j = inflated_amt[cv() - 1] * (1 + inflation_rt[cv()])
    )
/

        YR INFLATION_RT   BASE_AMT INFLATED_AMT
---------- ------------ ---------- ------------
      2001          .01         20         20.2
      2002          .02         20       20.604
      2003          .03         20     21.22212
      2004          .04         20   22.0710048
      2005          .05         20    23.174555
      2006          .06         20   24.5650283
      2007          .07         20   26.2845803
      2008          .08         20   28.3873468
      2009          .09         20    30.942208
      2010           .1         20   34.0364288
      2011          .11         20   37.7804359

        YR INFLATION_RT   BASE_AMT INFLATED_AMT
---------- ------------ ---------- ------------
      2012          .12         20   42.3140882
      2013          .13         20   47.8149197
      2014          .14         20   54.5090085
      2015          .15         20   62.6853597
      2016          .16         20   72.7150173
      2017          .17         20   85.0765702
      2018          .18         20   100.390353
      2019          .19         20    119.46452
      2020           .2         20   143.357424
      2001          .01         10         10.1
      2002          .02         10       10.302

        YR INFLATION_RT   BASE_AMT INFLATED_AMT
---------- ------------ ---------- ------------
      2003          .03         10     10.61106
      2004          .04         10   11.0355024
      2005          .05         10   11.5872775
      2006          .06         10   12.2825142
      2007          .07         10   13.1422902
      2008          .08         10   14.1936734
      2009          .09         10    15.471104
      2010           .1         10   17.0182144
      2011          .11         10    18.890218
      2012          .12         10   21.1570441
      2013          .13         10   23.9074598

        YR INFLATION_RT   BASE_AMT INFLATED_AMT
---------- ------------ ---------- ------------
      2014          .14         10   27.2545042
      2015          .15         10   31.3426799
      2016          .16         10   36.3575086
      2017          .17         10   42.5382851
      2018          .18         10   50.1951764
      2019          .19         10     59.73226
      2020           .2         10   71.6787119

40 rows selected.

SQL> 

SY.

Published by: Solomon Yakobson, March 25, 2010 13:12

Tags: Database

Similar Questions

  • Acrobat Professional DC membership on an annual basis with ONE payment per year?

    I would like to subscribe to Acrobat Professional DC on an annual basis with ONE payment per year (same as the creative cloud subscription, I already have) and not on the monthly fee. Is it possible, and where can I find the link to download?

    Thanks for help, I've been browsing for this already too long.

    Hi ReguBee,

    The available option is to Acrobat Pro Dc subscription match monthly Plans and prices | Adobe Acrobat DC. There is no one time annual payment option.

    Kind regards
    Nicos

  • Sampling - in parallel with different rates

    Dear members of Lab View discussion group,

    I would like to ask for some advice on how to stop the removal of two different signals at the same time. I was able to confirm that they start at the same time (the timestamp on the first call of loop-based) sampling, but the time of waveform for my two signals is very different.  The signal AE samples always on time, but the charge indication always shows about 1.5 to two seconds longer acquisition time.

    He will have to do with the very different high sampling frequency (500 Khz vs 1000 Hz). I can't get my head around why the acquisition of load loop would be so much longer well that even if each iteration of the loop must be environ.001 + 10 micro seconds (frequency of acquisition more buffer that OR add).

    I tried to use timed loops, but the result is the same. in this case, I wired the value of loop iteration (dt) to be...

    (acquisition of signal frequency) * (number of samples to acquire)

    I also tried to use notefiers and configuration master slave (load loop was the slave and a notefier was sent every time 500 iterations of the loop of EI were carried out). This does not result either rule stops.

    My ultimate goal is to get the two files and then compare the tips my AE signal when a specific load occurred. I have then count the number of spikes occurring in some parts of the load and generate a histogram.

    I'll be gone next week, back on July 6. I will answer to all positions at that time.

    Thank you

    Alfonso

    I don't see that you need two separate loops. Also skip the timing of software. I'm guessing that causes your boredom.  Simply put the playback in the loop running read NOR-9221-NOR-6221. Perhaps placing them in a framework so both are read before data are written to the file. I think also often extract data from your buffer OR-9221. You read the second pr 500 times buffer. Perhaps the lover to 50 times this pr then. So every time you read the traction OR-9221 10000 samples of memory buffer and the buffer NI 6221 40. And for now just ignore it. Stop your loop then you have run 100 times. Assuming that you read 10000 samples of the NOR-9221 on each iteration will then have read 100 x 10000 samples equal to two seconds of data

  • acquisition of data with different sampling rates high

    I have a few questions on the use of the OMB-DAQ-3005 with different sampling rates high.

    For our application, we have 8 analog inputs. Which two are a quick response and should be sampled frequently.  We have an encoder quadrature (CPR 1000 running at 1800 rpm).  We plan to sample X 4 encoder.  For the analog inputs for the quick response, we want to trigger a sample of each pulse or each a few pulses, thus creating a timestamp with the position of the encoder with respect to position index as well as two fast analog inputs.  We have data correlating the analog inputs with the position of the encoder.   Other analog inputs, we want to measure relatively slowly (for example once every 5 dry or similar).

    How can I go on the configuration of the two (or more) sampling rates different wherein I can taste entered at different frequencies?  Also, is there a way to reset the encoder count after outbreak of the index as I have the position of the encoder with respect to the index?

    Maybe you'll find someone here who uses the OMB-DAQ-3005, but this forum is really more designed for LabVIEW programming issues.

    I've never used the OMB-DAQ-3005, but out of curiosity, I took a glance at the Manual of OMB-DAQ-3005.  The answer to both your questions are:

    1. you cannot run a hardware DQA Multiplex (like this one) at independent rates by channel.

    2. the OMB-DAQ-3005 supports an Index Z feature to reset the counter - look for documentation on how to configure any software interface you are using.  If you get stuck, you can try to discover media appropriate for instrument channel.

    Best regards

  • You can buy JUST Adobe Stock for three users in a company? The guy I chatted with that said I had to pay $199.99 per year over $ 69.99 per user. Is this correct?

    You can buy JUST Adobe Stock for three users in a company? The guy I chatted with that said I had to pay $199.99 per year over $ 69.99 per user. Is this correct?

    When I go on the website of plan, it says 199.99 per license as well. Do we buy 3 licenses then 3 plans to 69.99 each apps? It's very confusing.

    Well I advise you to contact Adobe sales for the same because they can help you with the correct plan according to your needs.

    Contact us | Adobe

  • Unble to create graphics in curves with different years

    Hello
    I am trying to build a line chart where I should show each year (2008,2009,2010,2011), a line with the number of rooms that I have, in order to make a comparison.
    Bar graph is fine, but the chart seems weired.
    If I understand the months, it looks better, but once again a line for all years.

    In the link, you can see what it looks like

    http://a.imageshack.us/img828/682/lines.jpg

    Thanks and greetings
    Giuliano

    I would create 4 measure in the criteria tab

    filter ( using year = "2008")
    ... with year = "2009")

    and so on... use any measure 4 in the chart and you wil get one line per year.
    Does that help?

  • Report script to extract two year with different months

    Hello

    I need to create a report script to extract data from two years with different months.
    For example: 2009: seven to June
    2010: July to December

    How can I combine two of them in the script for a single report?

    Thank you

    Lian

    Set up your first extraction for 2009: seven to June

    Finish with the bang (!)

    Then add in the second extraction for 2010: July to December

    Finish with the bang (!)

    Essentially two separate report of scripts, but if you put them in one, separated by a bang. It will work one after the other, in the same report, issued to the same file script.

    This will accomplish what you're asking.

  • How to structure the DMA buffer for SMU 6341 DAQ card for analog output with different frequencies on each channel

    I use the outgoing/incoming analog DDK with the DAQ 6341 SMU map.

    The examples, for example aoex5, show a single timer (method outTimerHelper::loadUI), but the example shows the DMA loaded with same size of vector data.

    There is a comment in the outTimerHelper:call rogramUpdateCount, which implies that memory sizes different pad per channel can be used.

    (the comment is: switching between the sizes of the various buffers is not used)

    Nobody knows what should be the format the DMA buffer for data from multiple channels with different frequencies?

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    Hello Kenstern,

    Data are always intertwined since each card has only a single timing for each subsystem engine.

    To AO, you must specify the number of samples that will be released to the AO. You also specify the number of channels. Because he didn't is that a single engine timing for AO, each AO will be channel will be updated at the same time to update clock tick. Data will be interlaced exactly as shown in the example because each channel AO needs output at each tick of the clock to update. The data itself can change depending on the frequency you want to copy.

    kenstern wrote:

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    In your example, you must come with an update rate that works for the two waveforms (sine waves of 1 and 1.5 KHz). To get a good representation of a sine wave, you need to update more than 10 x faster than your fastest frequency... I would recommend x 100 if possible.

    Update frequency: 150 KHz

    Channels: 2

    Then create you stamps that include complete cycles of each wave you want to produce based on the frequency of update. These buffers must also be of the same size.

    Buffer 1: Contains data for the sine wave of 1 KHz, 300 points 2 cycles of sine wave

    Buffer 2: Contains data for the sine wave of 1.5 KHz, 300 points, 3 cycles of sine wave

    You can Interleave them as before. When the data are performed through the ADC, they are out different sine waves, even if the AO channels are updated at the same speed.

  • How to save the data of different rates in a single VI?

    Hello

    I tried to acquire 2-channel measurement of voltage at 10 kHz and analyze data, finally to save the data to both 1 kHz and 1 Hz. What I did is this loop of producer/consumer use to do the work of recording at different rates. I have queued all the data in the main loop, and then removed the data and write it to the file in other loops. I added "wait = 1 ms' a consumer loop for recording data at 1 kHz (loop of fast logging) and added" wait = 1000ms' in another loop to get the slow 1 Hz (logging loop) data record.

    My problem is that the data record works fine in the case of 1 Hz, but it does not work for the case of 1 kHz. Although the time-out period defined as 1ms, the interval between two samples in the loop of fast data recording is about 100ms.  Subsequently, 1ms, 10ms, 100ms, 150ms tried in this loop to see what intervals are in these cases. I found that the intervals are same as assigned in the timeout greater than 100 ms, but if the time-out is set to 1ms or 10ms, the intervals are again around 100ms.

    My question is - why I can't reach data record 1 kHz using loop of consumers/producers, while the same way works for the case of 1 Hz?

    Thank you very much

    Hao

    You are sampling at 10 kHz and you want to back up your data "as if you sampled at 1 kHz and 1 Hz", if I understand correctly.  I also understand that you use the design of producer/consumer model to help with this (a good idea).

    I'm assuming that the producer 'product' a segment of data at a time, to say the value of a second of data or a 2 x 10000 I16 (assuming a 16-bit integer A/D) table you put into a queue and wait for the consumer.

    If you have data at 10 kHz, how do you get representations to 1 kHz or 1 Hz?  There are (at least) two possibilities - average data over the interval of proper time, or (re) sample data.  The good thing is that you can handle the situation 1 kHz and 1 Hz, essentially at the same time and in the same processing loop.  I'll discuss the case 1 kHz - with the assumptions I made, the case of 1 Hz becomes almost trivial.  I'll discuss treatment also just one channel, as it is similarly almost trivial to go from 1 to N-channel.

    If you have 1 second of data sampled at 10 kHz, and will "reduce" 1 second of data sampled at 1 kHz.  Note that you have 10 samples for each data point that you want in the end.  The "Averaging" method said "Replace all 10 points in the average of these 10 points", while "resampling" method said "replace 10 points with, say, the first point, ignoring the others.  An easy way to do this is to use the Reshape feature to transform an array of 10 x 1000 elements of your array of 10000 items 1-D 2D.  Now, you can use a loop FOR an average of 10 items or simply extract the first.  [This is where almost everyone, including me, a mistake - when you put a 10 x 1000 2D array in a loop, you get 10 iterations of 1000 items and we want 1000 iterations of 10 items.]  Oops, what to do?  [Simple - converts 2D array before sending in the loop FOR.]

    So when you have processed your 10,000 points and got both 1000 samples "1 kHz" and 1 "1 Hz" sample, you write each of them in their respective folder and wait for the next item in the queue of the consumer.  Consumer focus on the queue loop, it will automatically 'block', waiting for the producer of the 'feed' some data.  Note that the producer generates data once per second, producing 10000 points for the consumer in the process, but the time to deal with these points and perform the required disk i/o should take only a few milliseconds (certainly not more than 100, even if writing to a floppy!), so you don't have much time to do other interesting things (such as display data).

    Bob Schor

  • Photos with different apple id: s

    Any way to sort photos taken with various apple id: s in photos for mac? I have three different iPhones that has been moved from parents to children. Is there anyway to sort images with different apple id: s? I heard that there is way to sort different (smart folder) with the model of phone, but this is not enough cause phones were used earlier by the parents. And I want to use only a single library of pictures, so the different IDs: s for mac is not the solution. It would be nice to get this functionality.

    You can use smart albums with a combination of constraints: the model of the iPhone and the date rank when the iPhone has been used by a person in particular. If the iPhone has been in use you make in the years 2012 and 2013 creates a smart album that will check for the ipHone and the date range.  Then announces a keyword "Photo by Me" of all the photos in this album. Do the same for the other ranges of iPhones and date and assign the photographer as a key word.

    If you keep marking new imports with a keyword of photographer then you can create smart albums for every photographer.

  • Synchronization of the inputs and outputs with different sampling frequencies

    I'm relatively new to LabView. I have a NOR-myDAQ, and I am trying to accomplish the following:

    Square wave output 10 kHz, duty cycle 50%.

    Input sampling frequency of 200 kHz, synchronized with the output that I get 20 analog input samples by square wave, and I know what samples align with the high and low output of my square wave.

    So far, I used a counter to create the square wave of 10 kHz, display on a digital output line. I tried to pull the document according to (http://www.ni.com/white-paper/4322/en), but I'm not sure how sample at a different rate than my clock pulse. It seems that this example is intended rather to taste one entry by analog clock pulse. There may be a way to create a faster clock (200 kHz) in the software and use that to synchronize the analog input collection as well as a slower 10 kHz output generation square wave?

    I eventually have to use the analog inputs to obtain data and an analog output to write the data channel, so I need the impetus of the square wave at the exit on a digital PIN.

    How could anyone do this in LabView?

    Hi Eric,.

    All subsystems (, AO, CTR) derive from the STC3 clocks so they don't drift, but in order to align your sample clock HAVE with pulse train that you generate on the counter, you'll want to trigger a task out of the other. I would like to start by a few examples taken from the example Finder > Input and Output material > DAQmx. You can trigger GOT off the train of impulses, start by Gen digital Pulse Train-keep -you probably already use a VI like this to generate 10 k pulse train. AI, start with an example like Acq Cont & chart voltage-Ext Clk - Dig Start.vi-you'll want to use the internal clock so just remove the control of the "Source of the clock" and it uses the internal clock. From there, simply set the "Source of the command" either be the PFI line generates the meter, or ' //Ctr0InternalOutput '-assuming that you are using the counter 0. You'll want to make sure that the start of the task HAVE faced the task of counter I is ready to trigger off the first impulse. They should be aligned at this point.

    For debugging, you can use DAQmx export Signal to export the sample clock - you can then brought the train line and the PFI pulse to make sure that they are aligned.

    Hope this helps,

    Andrew S

  • Save the file text at different rates

    Hi all

    I'm kinda new to LabView, so perhaps this question is trivial, but gives me a lot of pain.

    I want to permanently save a string given at two different rates; in the example provided these rates are every 500 ms and ms 50, in two different (one for each rate) text files. I tried to use while loops structured for this purpose. When I use one, it works fine, but when I use both at the same time, it seems that Labview limited both paths at the lowest speed, which in this case is obviously 500ms, and eventually get two accurate files with the string saved to 500 ms period.

    How can I make it work?

    Thanks in advance.

    Your loops the two stops after one iteration. Maybe you should keep them until you want to stop the running program. Add a stop appropriate to each condition.

    (Looks like you are using "continuous operation" where the program begins again once the code is complete. Do not! It's just a debugging tool. Use the ordinary execution.)

  • Several channels with different frequencies

    Hello

    I use card NI USB-6221.

    The C API using, I need to generate 6 digital output channels, with frequencies of diffrenet and Heavy duty.

    To be more precise, the 2 are totally identical, but I need them to be reversed, and the other 4 are similar to another, but should be shifted in time (I.e. There is a delay between each of the channels).

    I used the 2 channels of CO that the USB-6221 takes charge for the first two signals, and it works very well (the two signals are synchronized and are reversed).

    Now I need an additional 4 channels for the other vague square.

    I saw an articale NOR by JohnP web site with the title:

    Generate multiple channels of digital output with different frequencies and Heavy Duty

    The following example shows how to create and generate a digital with the non-regeneration wave form so that you can change the frequency and the duty cycle on the fly with the M Series DAQ hardware X.  The example uses output digital rather than counters to achieve this, so if you need more output than the available counters, it would be a good option (Note: on the materials of the M series an external sample clock must be provided, this may be caused by one of the counters if you want).

    that seems to be exactly what I need, but the examples are for LabView which I did not.

    Can someone explain how to do this with the C functions?

    Best regards

    Danny.

    Hey Danny,

    The important thing to note is that you can clock of arbitrary digital waveform (up to 1 MHz on the 6221).  The real data acquisition programming is pretty easy once you have the waveform.  My Example LV used LabVIEW Base generating function VIand then converted to a digital waveform to generate the signal from each channel.

    The functions of LV helped tremendously with to achieve the waveforms to be updated on the fly (the basic function generator keeps track of phase for you).

    If you do not need to be updated on the fly, then the construction of the waveform in C should not be too bad.  For example:

    P0.0 [1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0] * 1

    P0.1 [0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0] * 2

    P0.2 [0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1] * 4

    P0.3 [1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1] * 8

    [9 9 9 9 9 3 3 3 3 3 6 6 6 6 6 12 12 12 12 12]

    The table above U8 would give you 4 output waveform of 50% duty cycle at Fs/20, shifted 90 degrees to eachother.  The lines would be p0.0 by p0.3 (the bit rate of the U8 corresponds to what line goes high).

    Best regards

  • Judgment of multiple while loop running at different rates to stop using the single Boolean stop button

    Hello

    I'm on the block diagram of 4 loops, do different tasks. They are independent of each other, but need to see the unique front panel - some of the wonders of labview!

    Now, I want to have a unique stop button which will in fact be a back button to return to the main screen by stopping all four loops on the block diagram. I used the stop button (switch released) with local variable to stop the three other loops. He stops the vi but it is not a good stop vi to stop properly and the grid on the performance of the front panel. Now all loops run also at different rates, so it is not necessary that all loops are stopped immediately when one of the loop is stopped. Can't really think of a better way. All the ideas!

    Kind regards

    Austin

    Variables local is ok in this case, but you will need to keep the control in switching mode (no lock).

    A better solution would be to have all the loops as a structure of event all listening value stop change. Or have the Stop value change event generate a user defined output event or similar.

    /Y

  • Licenses that merge with different activation time

    Hello

    I want to merge two different activation time license. I found that there is a solution for this http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2006973

    But some question appears in this operation:

    1 time activation may differ by more than 30 days (a license has been purchased and activated in September and the other was purchased and active in June) type of licenses will be the same example - VMware vSphere Standard for 1 CPU with 1 year of support in version 5.5, how support for this looks?

    2. what type of license do need me for server with 2 processors with 8 cores and 192 GB of RAM, this license fits my needs? Is there a single license covering such a feature?

    On the HP site, I found only licnses for 1 CPU http://h30094.www3.hp.com/searchresults.aspx?store_id=11 & search_id = 67 & dept_id = 1328

    3. should I VMware vSphere Standard at least to connect to vCenter VMware?

    THX in advance for any replay :-)

    From vSphere 5.5 all basic and memory restrictions have been removed, and licenses are simply based on the number of processors physical Sockets (see http://kb.vmware.com/kb/2064117).

    What you must ensure is that the license key you want to assign has at least the capacity of the CPU. You can merge the license keys for the same version/edition even with different dates of SnS. However, this will not change SnS and end dates will always be displayed ion the MyVMware portal.

    vCenter Server is optional and licensed separately and is necessary if you want to manage a cluster host, or use additional features (for example, the cloning, live migration,...)

    André

Maybe you are looking for

  • Establishment of Firefox urging 42.0 refreshed and now my 2 - Fav went modules! Is reversal Possible to undo changes?

    In moments, Firefox "Refresh" made a mess of my selections, custom modules, plugins, toolbars, etc and now fails, 2 - my favorite "go - to" Add - ons are (1) went 1 and (2) the other will not be installed. I would NEVER suggest that Firefox again. I

  • Download file is frequently forgotten

    I started with 10 Firefox today after update my Kubuntu10.04 packages. Before I used 3.6. ?Since this change firefox often forget my last used download folder. It is one that I've used a few downlaodactions before, but had changed in the meantime, or

  • Why do I get a script error whenever I try to open Firefox 4?

    Since the recent Firefox 4 download, I get this message while trying to open my browser: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script ends. Script: chrome:

  • Updated the file error

    Hi all A few days ago, I moved a project out of a hard drive to another because I needed to free up space on the first hard drive. I thought I copied correctly, that is to say, I did drag the folder containing everything (library, events, images) on

  • Delete Array element

    I'm unable to a Board problem. I am able to do the types of features such as see how many items in the table, insert (I hope I did it correctly) and ordered random numbers growing as well as sorting. Now, I'm hoping to find a way on how to remove the