How to wire input to "Standard deviation & Variance VI"

The data that is being read is an I16 file in a 2 dim array. I need to compute to mean and standard deviation for all the numbers in the array. If I wire this 2 dim array to the input of the "Standard Deviation and Variance" vi function I get a broken wire. I've tried numerous functions to convert the data into a format but I get incorrect answers. I believe I need to convert all the rows and comumns into a series of numbers. There are 128 rows and 128 columns all with different numbers.

I'd suggest you use reshape array, to reshape the 2D array into a 1D array. See the attached LV 7 example.
I basically find the array size of the 2D array, multiply those dimensions sizes together and call reshape array. So, a 128x128 2D array becomes a 16K 1D array.
Brian
Attachments:
2D_Mean.vi ‏26 KB

Similar Messages

  • Standard deviation in graph (bar chart)

    Dear Community,
    I am looking for a solution for my measurement analysis software, programmed in LabVIEW 8.5:
    I have an array (1D, double) with some data. This data is shown in an graph as a bar chart (attachment 1 & 2).
    Aditionally, there is an other array (also 1D, double) with the standard deviation of my data in the upper array (both calculated via standard deviation and variance VI)
    How can I integrate this standard deviation in my graph to be shown as (colored) error bars (attachment 3)
    Thanks for your help!
    Best regards,
    Iwo
    Attachments:
    Graph_in_vi.jpg ‏38 KB
    Bar_chart_without_std_dev.jpg ‏853 KB
    Bar_chart_std_dev.jpg ‏54 KB

    Dear lwo,
    You can add two more channels.
    One with mittelwert+standardabweichung/2
    and one with mittelwert-standardabweichung/2 .
    Then configure them to show only symbols and no line.
    Color them red and choose a cross as symbol.
    Be sure, the mittelwert channel is the first one in the array,
    or the bars will hide the crosses.
    Best regards,
    Stefan Heinzl
    Message Edited by Stefan Heinzl on 03-09-2009 09:56 AM
    Attachments:
    Block Diagram.jpg ‏17 KB
    Front Panel.jpg ‏40 KB

  • Adding standard deviation bars to graphs

    I have composed a bar graph on numbers, and have already calculated the standard deviation of my data. How do I add the standard deviation lines to each bar on my graph? Thank you.

    Details available in *_Numbers User Guide_*, page #148 in the English version.
    Yvan KOENIG (VALLAURIS, France) lundi 6 décembre 2010 16:44:20

  • Standard Deviation and Variance

    Hi All,
    i have to calculate  the standard deviation and variance for two quantities:
    Actual and Forecasted (for each of them)
    say : actual       forecasted              Variance           Standard Deviation
              3                  18                        
              5                   6   
              3                   5
    How do i do that?
    Please help me....This is urgent....
    Thanks

    Hi,
    Not sure i understand your question, but if you want to caculcate the percentage deviation of actual from forecasted you'll need to craete a formula in your sturcture and assign it the following calculation:
    <actual> % <forecasted> (The operand to use is "Percentage Deviation" and it is located in the Percentage functions)
    Calculation of Standard deviation and variance is logical for all values of forecasted and for all values of actual but not for single values.
    Hope it helps (if so, please assign points),
    Gili

  • How to calculate standard deviation of a certain number of points?

    Hi, I have an application that I acquire force signals and pu then on a array.
    I need to calculate the standard deviation and the mean each a certain number of points, 1000 for example.
    I'm having problems with this, if you can help me I'd be thankful.
    Thanks
    Douglas
    Solved!
    Go to Solution.

    So you need something like this?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Std_Deviation.png ‏12 KB

  • Does anyone know how LabView determines standard deviation on their Gaussian Peak Fit VI?

    The VI reports standard deviation that is quite high. I am wondering if they go out to 5-sigma or something along those lines.
    If anyone has had this same issue, please let me know
    Thanks in advance!

    Interesting you mention the robustness of the algorithm. I have heard in the past that it is not very good. In fact, the data you feed into it must be VERY Gaussian otherwise the fit is just garbage. Luckily for me, my data is quite clean, see the attached picture.
    You also mention Levenberg-Marquardt. Is a VI available somewhere or would I need to write my own?
    Thanks for your prompt reply!
    Attachments:
    GaussFitAttachment.docx ‏26 KB

  • Need Help-How Store the input parameter through java bean

    Hello Sir,
    I have a simple Issue but It is not resolve by me i.e input parameter
    are not store in Ms-Access.
    I store the input parameter through Standard Action <jsp:useBean>.
    jsp:useBean call a property IssueData. this property exist in
    SimpleBean which create a connection from DB and insert the data.
    At run time servlet and server also show that loggging are saved in DB.
    But when I open the table in Access. Its empty.
    Ms-Access have two fields- User, Password both are text type.
    Please review these code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setUserName(user);
    st.setPassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getUserName() {
    return user;
    public void setUserName(String user) {
    this.user = user;
    public String getPassword() {
    return pass;
    public void setPassword(String pass) {
    this.pass = pass;
    public String getIssueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getUserName();
    getPassword();
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:odbc:simple");
    System.out.println("Connected....");
    PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String User=getUserName();
    st.setString(1,User);
    String Password=getPassword();
    st.setString(2,Password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:
    This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("user")).getUserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("pass")).getPassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:getProperty name="st" property="IssueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>issue.jsp</jsp-file>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Please Help me..Thanks.!!!
    --

    Dear Sir,
    Same issue is still persist. Input parameter are not store in database.
    After follow your suggestion when I run this program browser show that:i.e
    This is Submit page Hello Student Name: vijay
    Password: kumar
    <jsp:setProperty name="st" property="userName" value="userValue/> Your logging is saved in DB
    Please review my code.
    login.html:
    {code}<html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>{code}
    LoginServlet.java:
    {code}import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String userValue=request.getParameter("user");
    String passValue=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(userValue);
    st.setpassword(passValue);
    request.setAttribute("userValue",st);
    request.setAttribute("passValue",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }{code}
    SimpleBean.java:
    {code}package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String userValue="";
    private String passValue="";
    private String s="";
    public String getuserName() {
    return userValue;
    public void setuserName(String userValue) {
    this.userValue = userValue;
    public String getpassword() {
    return passValue;
    public void setpassword(String passValue) {
    this.passValue= passValue ;
    public String getissueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getuserName();
    getpassword();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String userName=getuserName();
    st.setString(1,userName);
    String password=getpassword();
    st.setString(2,password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s= "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }{code}
    submit.jsp:
    {code}This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("userValue")).getuserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("passValue")).getpassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:setProperty name="st" property="userName" value="userValue/>
    <jsp:setProperty name="st" property="password" value="passValue"/>
    <jsp:getProperty name="st" property="issueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Sir I can't use EL code in jsp because I use weblogic 8.1 Application Server.This version are not supported to EL.
    Please help me...How store th input parameter in Database through Java Bean                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to find out the standard info stucture for a customized IS in LIS

    Hi All
    I have to run the statistical set up for the customized info structure S763 for the application plant maintenance in LIS. But i dont know whether it was copied from a standard SAP info structure or it was enhanced from a standard info structure.
    I have even checked out all the standard IS for plant maintenance but it is not matching. The closest match is S063 but a few characteristics and a key figure is missing.
    Could anybody guide me how to find out the standard info structure?
    Any help would be of great help.
    Regards
    Saddy

    Hi Ganesh
    No..it didnt solve my problem. MC23 only displays the info structures.  I have a customized info structure S763 which was created long time back. Im not sure whether it was copied from a standard info structure or enhanced from a standard info structure.
    I have to give the source info structure name to run statistical set up. The closest one which matches with the S763 is S063 but it is missing few characteristics and key figure.
    does it means that the IS S063 was enhanced?? Am i right?? If it was enhanced how will i run the statistical setup for the same...
    I hope i have explained clearly.
    Do provide ur valuable input.
    Regards
    Saddy

  • How to use sdk in standard B1?

    Hi,All
       How to use sdk in standard B1? I want to use "sum in words" be thai languag which in standard no have so i must create it use sdk but i don't know that have solution using sdk in standard. example, Go menu Sales-A/R>Delivery and input data i want to convert price in Total to text which i use sdk for convert it But i don't khow that when i will call sdk? Can do in standard?

    Hi Virasak,
    You need to develop a (eventually small) application (= Add-On) which uses the SDK to do what you need it to do + is packaged and installed like e.g. any SAP Add-On.
    It should then just watch out for the "right" events which are propagated from the SAP Business One application through UI API (an interface in the SDK) to "interested" Add-On(s)...
    HTH,
    Frank

  • How to validate input's in selection-screen

    Hi ,
    can any one how to validate input's field's  in selection-screen and each field has diffirent tables and what is the table name which has all the validating fields??
    Thank's in advance..

    hi,
      You can use validate selct-options using select query by obtaining the realtionship from table .Using the selection-screen events You can write code for validation as follows.
    tables:
      kna1.                                " General Customer data
    *"Selection screen elements............................................
    select-options:
      s_kunnr for kna1-kunnr.              " Customer number
    *"Data declarations...................................................
    Data declaration of the structure to hold kna1 details              *
    data:
      begin of fs_customer,
        kunnr type kna1-kunnr,             " Customer number
        adrnr type kna1-adrnr,             " Address
        anred type kna1-anred,             " Title
        erdat type kna1-erdat,             " Created on
        ernam type kna1-ernam,             " Created by
      end of fs_customer.
    *"Constants declarations..............................................
    constants
      w_path type string value 'D:\DOWNLOAD\CUSTOMER'.
    Internal table to hold customer details                             *
    data:
      t_customer like
        standard table
              of fs_customer.
                          AT SELECTION SCREEN OUTPUT                    *
    at selection-screen.
      perform retrieve.
    Form  RETRIEVE                                                     *
    This subroutine retrieve customer data from table kna1             *
    There are no interface parameters to be passed to this subroutine. *
    form retrieve .
      select kunnr                         " Customer number
             adrnr                         " Address
             anred                         " Title
             erdat                         " Created on
             ernam                         " Created by
        into corresponding fields of table t_customer
        from kna1
       where kunnr in s_kunnr.             " END SELECT
      if sy-subrc ne 0.
        message text-001 type 'E'.
        exit.
      endif.                               " IF SY-SUBRC NE 0
    endform.                               " RETRIEVE
    regards,
    veeresh

  • Help on standard deviation please

    I am writing a program to find standard deviation. Below is what I have so far "not much I know" but I have tried so don't get flame happy. It errors out and I have tried to fix it. I know the formula for standard deviaition but I can't seem to program it right. I also need to program the code to have three methods the main, an Average method, and a standard deviation method. I know how to make a method but I am having trouble on how to call them. Any help would be appreciated. I am not asking anyone to do my work for me just give me some tips. I would rather take a 0 on the assignement and learn later than turn in someone else's work becaue I will never pass my final if I do that.
    import java.text.*;
    import javax.swing.*;
    class StandardDeviation{
         public static void main(String [] args){
         DecimalFormat df = new DecimalFormat("0.00");
         //Average Code Segment
              double [] values = {10,20,30,4,2}; //Assigns numbers to values
              double valueAverage,square, sum = 0;
              for(int i = 0; i < values.length; i ++){
                   sum += values;
              valueAverage = sum / 5; //Computes Average
              System.out.println("Average is: " +valueAverage); //Displays average of values to test to see if it worked     
    //Deviation Code Segment
    for (int i = 0; i < values.length; ++i)
    double diff = values - valueAverage;
    sum+= diff*diff;
    System.out.println(+ Math.sqrt(sum/(values.length - 1))); // here I was trying to test to see if my formula worked          
    I get the following error
    java:20: operator - cannot be applied to double[],double
    double diff = values - valueAverage;

    Okay this code works. Duffymo can you give me some pointers of writing this code using multiple methods? I can write the methods. I just have a hard time grasping the concept of calling them. I have had a hard time learning this in java. I also looked at some of your past posts on Standard Deviation I see what you are saying about the multiple methods. I know that I need a main method that would probably include the values. Then I would have a average method which would call the values to compute the average. Then I would have the StdDev method to compute the Standard deviation method. Any tips on where to begin on this?
    mport java.text.*;
    import javax.swing.*;
    class StandardDeviation{
         public static void main(String [] args){
         DecimalFormat df = new DecimalFormat("0.00");
         //Average Code Segment
              double [] values = {10,20,30,4,2}; //Assigns numbers to values
              double valueAverage,square, sum = 0;
              for(int i = 0; i < values.length; i ++){
                   sum += values;
              valueAverage = sum / 5; //Computes Average
              System.out.println("Average is: " +valueAverage); //Displays average of values     
              //return valueAverage;
         //Deviation Code Segment
    for (int i = 0; i < values.length; ++i)
    double diff = values[i]- valueAverage;
    sum+= diff*diff;
    System.out.println("The Standard deviation is: "+ df.format(Math.sqrt(sum/(values.length - 1))));

  • Standard deviation in abap

    Dear Freinds,
    I want to calculate standard deviation of my internal table columns  in abap code , please help me how to calculate it  .
    Thanks,
    Naveen

    hi,
    try this code for calculating it:-
    REPORT abc.
    DATA : BEGIN OF itab OCCURS 0,
    num TYPE i,
    END OF itab.
    data : std type p decimals 2.
    itab-num = 8. APPEND itab.
    itab-num = 25. APPEND itab.
    itab-num = 7. APPEND itab.
    itab-num = 5. APPEND itab.
    itab-num = 8. APPEND itab.
    itab-num = 3. APPEND itab.
    itab-num = 10. APPEND itab.
    itab-num = 12. APPEND itab.
    itab-num = 9. APPEND itab.
    PERFORM stdev changing std..
    write :/ std.
    FORM stdev CHANGING std.
    DATA : mn TYPE p DECIMALS 2.
    DATA : sm TYPE i.
    DATA : sm2 TYPE i.
    DATA : dev TYPE p DECIMALS 2.
    DATA : cnt TYPE i.
    LOOP AT itab.
    sm = sm + itab-num.
    cnt = cnt + 1.
    sm2 = sm2 + ( itab-num * itab-num ).
    ENDLOOP.
    mn = sm / cnt.
    dev = ( sm2 - ( ( ( sm * sm ) / cnt ) ) ) / ( cnt - 1 ) .
    dev = SQRT( dev ).
    std = dev.
    ENDFORM. "stdev
    Edited by: ricx .s on May 2, 2009 1:50 PM
    Edited by: ricx .s on May 2, 2009 1:51 PM

  • Standard Deviation

    I was wondering how you get the standard deviation to show up on the graph. I know where the button is to activate the standard deviation for a simple bar chart, however it doesn't show the actual deviation, it gave me uniform for each bar in the chart. How can I fix this? Also I know that the standard deviation isn't the same because I have seen what the chart I am making is supposed to look like.

    cgord wrote:
    ... I know that the standard deviation isn't the same because I have seen what the chart I am making is supposed to look like.
    cgord,
    The problem is that Numbers doesn't know what your chart is supposed to look like. It's doing the best it can. There is no such thing as a standard deviation for a single point. Numbers considers that your series is a data set and calculates a mean and standard deviation for the set. It then applies this mean and deviation to the error bars, in a proper way, the same for each member of the set.
    If your data set is actually a collection of dataset averages, each with a standard deviation of its own, then it might be appropriate to show each bar with it's own custom error bar, calculated elsewhere.
    To make this work, you would display each bar's corresponding StdDev in the same row as the mean you are charting and then you would indicate to Numbers which column this custom error bar data is located.
    Hope this helps.
    Jerry

  • Standard Deviation in Graph

    Does anyone know how insert standard deviation into a bar graph??
    Thanks.

    Ah. The key point that I was missing was that this works (for points or bars) only when the series is selected in the graph. Otherwise the boxes are not enabled.
    See also http://discussions.apple.com/thread.jspa?messageID=9256703 for related info.

  • Display of standard deviation in graphs

    Hello,
    I am trying desperately to find out how to present standard deviation within adobe illustrator generated graphs. Can anyone please help me with this problem?
    p.s
    I am using adobe-illustrator CS2 and winXP
    tnx

    Dear lwo,
    You can add two more channels.
    One with mittelwert+standardabweichung/2
    and one with mittelwert-standardabweichung/2 .
    Then configure them to show only symbols and no line.
    Color them red and choose a cross as symbol.
    Be sure, the mittelwert channel is the first one in the array,
    or the bars will hide the crosses.
    Best regards,
    Stefan Heinzl
    Message Edited by Stefan Heinzl on 03-09-2009 09:56 AM
    Attachments:
    Block Diagram.jpg ‏17 KB
    Front Panel.jpg ‏40 KB

Maybe you are looking for

  • How to pair bluetooth with other devices

    need help...my iphone 5 bluetooth will not pair with any devices..

  • After upgrading acrobat 6.0 pro to  acrobat 6.0.1 Unable to open pdf file in IE

    I have down loaded acrobat 6.0.1 pro upgrade patch from adobe site. After upgrading pdf files are not opening in IE from our application. On top of 6.0.1 i have upgraded to 6.0.2->6.0.3->6.0.4 On opening pdf files from IE it gives error "Document is

  • Adobe Flash Player for mobile (iOS and Android) devices

    I have both Apple iOS and Android devices, and can't install Adobe Flash Player on either.  It appears that Adobe no longer provides Flash Player for any mobile devices.  The company I work for uses a a company called Paychex for payroll and time & l

  • Displaying a image in a JSP

    I want to display a jpg image in a jsp I have added the line <img src = “img/backImage.jpg”> Into the body of my jsp page. I have placed the backImage.jpg into a folder called img which is in the WEB-INF folder. When I run the application the picture

  • IBook crashing when moved

    Our woes regards to our iBook G4/1.33ghz/512Mb/OS X 10.4.4 was first dealt with in following topic: http://discussions.apple.com/thread.jspa?threadID=356812 However, I have noticed that the iBook ALWAYS crashes when it's moved/lifted (which made me s