Can someone verify my code for calculatin​g a Gaussian kernel?

I've attached my VI for calculating a Gausssian kernel function of selectable width and resolution.  I am not an expert in mathmatics and I was hoping someone on here could confirm the validity of my code.  If anyone has any suggestions please let me know. 
Eric
Attachments:
Old Gaussian Kernel.vi ‏24 KB

To better show what it is I'm trying to accomplish, I've attached
the top level VI that's using the kernel function, entitled "Pattern
Analysis of IPIs 2," .  The zip folder contains the top level VI, a
folder with all the subVI's and two data files.  Open the "Pattern
Analysis of IPIs 2" VI and go to the "Files" selector tab toward the
bottom right of the front panel.  Here you'll  be able to select the
folder containing the data files.  You'll need to unzip the attached
folder and save it somewhere, then select that folder as the "current
folder" to be opened (you don't need to specify which data file to
open, it will open both).  Once the folder is selected you can run the
VI and view its results. 
When the program begins
running a boolean indicator located in the bottom left corner will
appear red and the slider bars along the bottom will be disabled.  When
everything has been calculated the boolean will turn green and the
slider bars will become enabled. Choose the selector tab entitled "SPI,
SDF & SDD" to view the spike density function.  The spike density
function (SDF) is what's being created with the Gaussian kernel.  The
enabled slider bars allow you to adjust the x-axis values of the plot. 
The cursors on the plot indicate indicate the start, peak and end of
high rate bursts.  It may be easier to visualize this by viewing the
raw data located at the "Wfm Absolute and Relative Time" selector tab. 
To reduce file sizes the raw data has areas of "quite" removed, so you
will only see the voltage change events, represented by what appear to
be vertical lines.
To move to the next data file, click
the button entitled "Save and Go to Next" located in the bottom right
hand corner.  A prompt will appear asking if you want to save the data,
click "No" and the next file will automatically be loaded.  To stop the
VI, wait until the boolean is green and the slider bars are enabled,
then click the "Stop" bottom located at the bottom right.  It may take
a few seconds for the VI to stop.
Moving to the
block diagram, you'll see a yellow subVI with black writing that says
"SDF,"  this is where the SDF is calculated.  Open the front panel and
block diagram of this subVI.  On the block diagram you'll see the subVI
entitled "Gaussian Kernel," this is the subVI you saw yesterday.  The
generated Gaussian kernel is alligned at peak pulse times (can be seen
in the graph entitled "Gaussian Kernel Alligned at Peak Times") and
summed to create the SDF.  I only choose this method of generating the
SDF because it seemed intuitive to me, it may be wrong.  If it is,
could you please demonstrate how to program the convolution. 
Ultimately, I'm trying to achieve the plot described on the third page
of the attached paper.
Attachments:
Pattern Analysis.zip ‏2916 KB
Stereotyped temporal patterns in electrical communication.pdf ‏380 KB

Similar Messages

  • Can someone explain the code for having the Accordion panels closed?

    I located the answer to my own question (how to get all the accordion panels to remain closed when the browser opens) but I still don't understand the answer. Can someone explain this?
    This feature is only supported when using variable height panels, so you must pass a false into the Accordion's constructor for the "useFixedPanelHeights" constructor options, and a -1 for the "defaultPanel" option:
    <script type="test/javascript">
    var acc1 = new Spry.Widget.Accordion ("Acc1", { useFixPanelHeights: false, defaultPanel: -1});
    </script>
    Angela

    GPDMTR25 wrote:
    I located the answer to my own question (how to get all the accordion panels to remain closed when the browser opens) but I still don't understand the answer. Can someone explain this?
    This feature is only supported when using variable height panels, so you must pass a false into the Accordion's constructor for the "useFixedPanelHeights" constructor options, and a -1 for the "defaultPanel" option:
    <script type="test/javascript">
    var acc1 = new Spry.Widget.Accordion ("Acc1", { useFixPanelHeights: false, defaultPanel: -1});
    </script>
    Angela
    Hi Angela,
    You are right, the only way it will work is by setting the fixed height to false. As for the for the default panel option, -1 is not a panel and if you had 3 panels we could have used the number 3 (panel1 = 0) or 99 or whatever as long as there is no panel with that number. If we had used the number 1 for instance, then the 2nd panel would be opened by default.
    Hope this helps.
    Ben

  • I can't access my cell to verify a code for iCloud keychain?.... What do I do to get keychain going!!!!!

    I can't access my cell to verify a code for iCloud keychain?.... What do I do to get keychain going!!!!!

    Hi freddyg5316,
    Sorry to hear you are having issues with this. If you are having troubles receiving the verification code via SMS when setting up iCloud Keychain, you may find the information and steps outlined in the following article helpful, in particular this portion:
    If you didn't receive the verification code via SMS
    Make sure that you have a strong cellular network connection on your phone.
    Make sure that your phone number can get SMS messages. To check, ask someone to send you a text message.
    Make sure that the correct phone number is associated with your account:
    On your iPhone, iPad, or iPod touch, tap Settings > iCloud > Keychain > Advanced. (In iOS 7, tap Settings > iCloud > Account > Keychain.) Make sure the phone number under Verification Number is correct. If not, enter another phone number. 
    On your Mac, choose Apple menu > System Preferences. Click iCloud, then click Options next to Keychain. (In OS X Mavericks or earlier, click iCloud, then click Account Details.) Make sure the phone number under Verification number is correct. If not, enter another phone number.
    If you can't access a device that has iCloud Keychain enabled, contact Apple Support and verify your identity to get help setting up iCloud Keychain.
    Get help using iCloud Keychain - Apple Support
    Regards,
    - Brenden

  • I scratched the label off on a £25 gift card and it removed the code. How can I get the code for the card?

    I scratched the label off on a £25 gift card and it removed the code. How can I get the code for the card?

    Click here and request assistance. Gift cards are usually if not always final sale because it would be easy enough for someone dishonest to abuse returns or replacements of them.
    (58640)

  • Cffunction and how to ? can someone explain the code to me line by line

    Hello i went to get this online and i want to test it.
    the udf is supposed to
    * CSVFormat accepts the name of an existing query and
    converts it to csv format.
    * Updated version of UDF orig. written by Simon Horwith
    my question how to break it down.
    can someone explain the code to me line by line
    thanks

    silviasalsa wrote:
    > thanks
    >
    > but line by line
    >
    > what is
    > if(ArrayLen(Arguments) GTE 2) qualifier = Arguments[2];
    > if(ArrayLen(Arguments) GTE 3 AND Len(Arguments[3]))
    columns = Arguments[3];
    > returnValue[1] = ListQualify(columns, qualifier);
    > ArrayResize(returnValue, query.recordcount + 1);
    > columns = ListToArray(columns);
    > for(i = 1; i LTE query.recordcount; i = i + 1)
    > {
    > rowValue = ArrayNew(1);
    > ArrayResize(rowValue, ArrayLen(columns));
    > for(j = 1; j LTE ArrayLen(columns); j = j + 1)
    > rowValue[j] = qualifier & query[columns[j]]
    & qualifier;
    > returnValue[i + 1] = ArrayToList(rowValue);
    > }
    > returnValue = ArrayToList(returnValue, Chr(13));
    > return returnValue;
    > }
    >
    > thanks
    Apparently this UDF takes two optional parameters so that one
    can define
    (A) a text "qualifier" to use in the CSV file, this is
    usually the
    single quote|tick ['] mark - but sometimes one wants this to
    be a
    different character and (B) what columns to use in the
    output in case
    one does not want to use all the columns in the record set
    in the
    outputted CSV file.
    The if statements are checking for these optional parameters
    and if
    found setting the values in them to internal variables.
    These
    variables are then used in the rest of the logic to create
    the CSV output.
    HTH
    Ian

  • Can someone verify the following regarding Find My Phone:  I assume the lost device (iPhone) and the device (ipad) one is using to find the lost item must have the identical Apple ID, Apple PW, and iCloud PW and username? Otherwise it won't work?

    Can someone verify the following regarding Find My Phone:
      I assume the lost device (iPhone) and the device (ipad) one uses to find the lost item must have identical Apple IDs , PWs as well as identical iCloud identification?

    Back now.  Are you saying that you entered you iCloud ID and password in the Find My iPhone app (see photo below), and it said you don't have an iCloud account?  Are you sure this is the ID for your iCloud account (check Settings>iCloud next to Account at the top on the device you are trying to track)?
    Also, did you try using this ID and password on icloud.com on your computer to try to track it, as explained here: http://help.apple.com/icloud/#mmfc0f2442?  Did that work?

  • Can not view the code for views, triggers or table definition

    Hello Gurus,
    I can not see the code for any of the triggers, views, tables etc. in sql developer. For instance a view code will be
    "create or replace" and then nothing, I could see the code in the past.
    When clicking on SQL tab for table I get following errors
    1. Ora-00904 Invalid Column name
    2. Ora-31600: invalid input value emit_schema for parameter name in function SET_TRANSFORM_PARAMORA-06512: at SYs.DBMS_SYS_ERROR............................
    please advice.
    Thanks

    Sqldev was only certified starting from 9.0.2, so it's possible that's the culprit. The latest update in the certification document even omits 9i entirely.
    Did it start happening after upgrading sqldev? What version are you on?
    K.

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • Hi can someone keep this simple for me! my iPhone is due for a renewal. but my old laptop that it is backed up to no longer works! how do i go about saving all my songs pics etc to a new laptop without losing anything? please help!!!

    hi can someone keep this simple for me! my iPhone is due for a renewal. but my old laptop that it is backed up to no longer works! how do i go about saving all my songs pics etc to a new laptop without losing anything? please help!!!

                     Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Do you have to sign personaly for a delivery or can someone else do it for you?

    do you have to sign personaly for a delivery or can someone else do it for you?

    someone else can do it for you. I recieved my MB air yesterday, and it was signed by my apartment office personnel.

  • Can you send a code for iTunes and have it still work

    Can you send a code for iTunes and have it still work

    Did you get this in an email from Apple? Are there instructions in the email?
    Typically the way that you redeem a gift card is to go to either the app store or iTunes - go to the featured tab in the app store or the music tab in iTunes - swipe to the bottom of the screen. Tap on Reedem at the bottom and go from there.
    OK. I'm a little dense tonight. Now I get it. Like Meg said, you will know soon enough.
    Message was edited by: Demo

  • How can i watch native code for hashCode() in Object class?

    How can i watch native code for hashCode() in Object class?

    Those are two different requirements. You still haven't told us why you want the first one.
    The second one is called JNI - Java Native Interface. There is a forum here, and a large amount of documentation, and a book about it.

  • Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.

    Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.
    Thanks a lot for your great help...

    i made a quick example:
    and what it's made of:
    just shapes and gradients. used a combination of pathfinder and shape builder to get the shapes exact.

  • 500px give to me and redeem 24 code but i can't find the code for the activation of adobe cc

    500px give to me and redeem 24 code but i can't find the code for the activation of adobe cc

    Hi Ntinos,
    Normally you just need to go to https://creative.adobe.com/redeem and sign in with your Adobe ID to activate the code. The address you gave to 500px for registration and payment has to match that of your Adobe ID.
    Hope that helps,
    - Dave

Maybe you are looking for

  • IF CONDITION IN SMARTFORM.

    Hello all, Just facing a small problem in smart form. The code goes as follows :: PLANT: &GRLABEL-WERKS& /* Codes works fine. Displayed correctly. /: IF &GRLABEL-WERKS& = '01' Inside IF /: ELSE Outside IF /: Endif The problem is in if condition. Its

  • Text in accounting document posted against Excise invoice

    Hi,    We have a requirement that the accounting document posted against excise invoice ( J1IEX) should display a text ( Vendor name and PO No.).   We have tried entering the text at the time of capture and posting the excise invoice.But this does no

  • Lockbox issue for discount amount and incorrect reference

    Hi All, While doing Lockbox processing through FLB2, for certain payment advices discount was not recorded and it was posted directly by the system in price difference(maintained in Reason Code). Also, system did not prompted an error message for the

  • Time Lapse in Photoshop CS5

    Hi, Any tips on how to import a sequence of still jpegs and convert to a video?  Although Photoshop seems to go through all the motions to do this it doesn't work for me.  I just get a video consisting of the first frame of my sequence although the d

  • How do I turn a shape layer into a mask in After Effects?

    How do I turn a shape layer into a mask in After Effects?