using mean.vi on a 2D array



Tags: NI Software

Similar Questions

  • Lens sizes / use / meaning

    I currently have the lens EF-S 18-55mm and EF 75-300mm lens for my Canon Rebel T3i. I was graciously endowed with a 40mm lens for Christmas with the option to exchange it for another purpose. We'd like to think that the 40mm is covered by the 18-55mm lens, but I'm not completely sure how it works so any assistance with suggestions, meanings of size and/or what they do greatly would be greatly appreciated! Thank you in advance!

    Caroline_7 wrote:

    I currently have the lens EF-S 18-55mm and EF 75-300mm lens for my Canon Rebel T3i. I was graciously endowed with a 40mm lens for Christmas with the option to exchange it for another purpose. We'd like to think that the 40mm is covered by the 18-55mm lens, but I'm not completely sure how it works so any assistance with suggestions, meanings of size and/or what they do greatly would be greatly appreciated! Thank you in advance!

    Yes, the 18-55mm lens can capture the same field of view as the 40mm lens.  The difference is that the 40mm can do to a greater opening (allows more light in and allows a smaller depth of field for that look "background blur").  It will also produce images sharper than the 18-55.  How much sharper depends on how to use it.

    Prime lenses (no zoom) are not for everyone.  You must use your feet instead of zoom in and out.  In addition, they (generally) don't have image stabilizer, which has your 18-55.  The compromise is that they can produce extremely sharp images and allow you to shoot in dim light situations.

    I tend to like them, so maybe I'm not the best person to comment on.  But one of the main advantages of the lenses privileged is a very wide opening.  The 40mm "pancake" lens is actually not all that wide at f/2.8.  It's better than your zoom, but not as wide as something like the 50mm 1.8 "nifty fifty".  The main advantage of the pancake lens is just that it is very thin, for those who want a small lens.  Personally I would recommend the 50mm lens on the 40mm, because it has greater openness.  But I have never used the 40mm - there are many people who love him.

    Be that as it may, I do not recommend trying a first goal.  As I said, they are not for everyone.  But you won't know until you try.  And what better way to try to donate.

  • Excel & ActiveX: Insert arbitrary columns of 2D array and create problems of graph

    Hello

    I want to insert data in a 2D of LabView or 1 d table in Excel and create graphics.

    I used the information in the following example:

    http://www.NI.com/example/28934/en/

    and has managed to create a new Excel file (I use Excel 2010) writes data in a 1 d table to a column in excellent by creating a while loop and using the first element of the array to write in a specific cell. I use the loop counter to write to the next cell when the loop starts again and always remove the first value, I write to the cell of the table until it is empty.

    Now I also want to write a 2D - column in Excel table should be the first column of the matrix and so. Here, I can not use the loop counter directly as Excel there are only 1,2,... for the lines, but uses A, B,... to count columns. Also I do not know in advance the number of columns my 2D array will contain, thus creating a lookup table as (A means 1, 2 B, which means...) is not really an option (except there is really no other way). Is there a possibility to convert numbers into letters or somehow to "explain" to the program that this column 2 of the table means column B in Excel for example, or is it possible to insert new columns?

    I figured out how to add new calculation sheets and as I also need to create a certain number of spreadsheets and I know that the standards 3 sheets are present during the creation of the file, I use the method 'Add' to create new worksheets before the worksheet 3 - I could use the same method to create new columns in Excel , but so far I have not found a method to do. Or is there a way to enter into the 2D table all at once?

    So I want to create a chart (in case 1 d tables draw a bar when using 2D arrays a 3D field) to display the data. I found this example:

    http://www.NI.com/newsletter/51339/en/

    -> that I do not have the tool box I would do it directly using ActiveX, so I tried to make things as shown under the title "ActiveX DIY /.» NET'

    I tried to load the code snippet into a new Excel file but got the error message "microsoft.office.interop.excel.dll" not found and this is why the code does not work. Which confuses me a bit as I guess when this dll is not present I can not access Excel of LabView at all, although my understanding of what I'm doing so far is limited in the calm. ;-)

    Also - as far as I understand the extract - when you create a new graphic object, I should be able methods to create for her, however when I do a right click on the graphic object to a symbol of the spreadsheet ActiveX it no listed.

    To explain my problems better, I added an excerpt showing my two problems: the inside of the two loops while showing how to import a table 1 d. In the outer loop I separate the columns. I know that is not currently as has all the data in the column of the Excel sheet - so I need to convert the external meter number a, B,... or find another solution.

    In addition, on extract, I placed a property ActiveX spreadsheet with the Chart object - I can see that the difference to the graphics object of the example code of the last link above is the color. However I do not know what it means and how to change / fix this.

    And just to make sure - I know that this path that the VI is not running as the graphical object is placed completely false – I just did, so it is included in the extract.

    I would be grateful for any suggestion,

    Thank you!

    Hi all

    for your information in professional 2014 LabVIEW report generation toolkit is included

    Table 2D

    I want to write table 2D in specific columns/rows in excel

    Graph

    Create a graph through ActiveX Labview traced XY scatter on an excel sheet

    also good information about Excel and ActiveX

    Excel Council

    Hope that if aid, if not please let me know.

  • join an associative array with table

    I'm new to associative arrays.

    Here, I'm doing the equivalent of as follows:
     create table mytable as select n1,padding from T1 where rownum <=5;
    Table created.
    And join this table with T1 and the corresponding records to get top 10
      1   SELECT * FROM
      2   (
      3     SELECT
      4              T1.n1
      5            , T1.small_vc
      6            , mytable.padding
      7      FROM
      8             mytable
      9            , T1
     10      WHERE
     11            mytable.n1 = T1.n1
     12   )
     13* WHERE ROWNUM <= 10;
    Now with the assicative bays
      1  DECLARE
      2          type array is table of T1%rowtype index by binary_integer;
      3          l_data array;
      4          l_rec T1%rowtype;
      5  BEGIN
      6          SELECT
      7                    *
      8          BULK COLLECT INTO
      9          l_data
     10          FROM T1
     11          WHERE ROWNUM <=5;   -- the top 5 records
     12          FOR i IN 1..l_data.count
     13          LOOP
     14                BEGIN
     15  --
     16               SELECT
     17                     *
     18               INTO
     19                     l_rec
     20               FROM
     21                     T1
     22               WHERE
     23                     T1.n1 = l_data(i).n1;
     24             EXCEPTION
     25               WHEN OTHERS THEN
     26                       DBMS_OUTPUT.PUT_LINE(to_char(SQLCODE) || ' - ' || substr(SQLERRM,1,200));
     27        END;
     28     END LOOP;
     29* END;
    [email protected]> /
    -1422 - ORA-01422: exact fetch returns more than requested number of rows
    -1422 - ORA-01422: exact fetch returns more than requested number of rows
    -1422 - ORA-01422: exact fetch returns more than requested number of rows
    -1422 - ORA-01422: exact fetch returns more than requested number of rows
    -1422 - ORA-01422: exact fetch returns more than requested number of rows
    Of course the encoding isn't fair. Also, I want to display the first 10 results set.

    Thank you

    Mich

    Talebzadeh mich wrote:

    Does it fast enough and I think it is necessary for using the pipeline to multiple joins functions to update the tables of FACTS so to speak.

    A pipeline returns data that are not indexed. So by default, using data from a pipeline function involves a full production table scan. That's why native SQL tables are better than a pipeline - as these are accessible and used optimally (via the index partitions, bitmaps, clusters, etc.).

    Since PTFS uses memory structures as associative arrays do, what are the main benefits of using TFP compared to the associative arrays in addition to the fact that in MFP memory structures are presented in the SQL format?

    Not the same structure. An associative array is typically a list linked and "indexed" differently.

    A normal array is accessible by compensation. Let's say it's an array of bytes 4 IEEE floats. 1st entry is at position 0 in the structure of memory. The 2nd entry at position 4. Etc.

    Index number of the table is used to determine the offset of this table cell in the structure of memory.

    An associative array is "indexed" using strings or dates or numbers (not sequential). Thus a structure like a linked list must be used. Access to the range means a search in this linked to the match index list and then read the value of this cell in the table.

    The associative arrays do exist in the SQL engine. It is a unique data structure of PL/SQL engine.

    As to the benefits of a pipeline - this is when the data must be processed and plain vanilla SQL is not able to do this and PL/SQL is required.

    Simple example. A flat web service XML data structure. A table of pipeline can use UTL_HTTP to make the service web call, retrieve the XML code and that the output data as rows and columns - in effect turning a web service interface into something that looks like a SQL table and can be used as if it were a table SQL.

    Reading Tom on the use of pipelines comments:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:2814739467100916:P11_QUESTION_ID:19481671347143

    Also when can I use associative arrays functions insteard table in pipeline?

    Associative arrays are useful for the only PL/SQL data. For example, which deals with the pair name / value that are placed by a customer and that are used to determine which query or process data. For the majority of the PL/SQL code and the treatment, associative arrays are not necessary. And often wrongly used that developers do not seem to understand what an associative array is and how it differs from a normal table structure.

  • Using find/replace

    Is it possible to use the search/replace on an array of text feature?  For example, I want to search my document for any type of [Text1, Text2, Rem3 Rem4] and change the style of paragraph on this text.  I know I could create 4 different searches, but since they all change the same paragraph style, it would be much easier to just use a.  Thanks for any help.

    Yes, if you have InCopy CS3 or CS4, you can use GREP find/replace to do what you want.

    1. Discover all the stories, then you can find/replace
    2. Edition > find/change, GREP tab
    3. In find it this field, enter "text 1 | Text 2 | Text 3 "(sans les guillemets)." The vertical bar character means 'or '.
    4. Let the change to the empty field
    5. Click the button change in format at the bottom and select the name of your paragraph Style in the first Panel of Options of Style
    6. Run a search/replace to test

    hope that helps!

    AM

  • How parallellize a loop with arrays?

    Hello

    Trying to improve the performance of a program I want to parallellize a loop. This loop uses a vi that returns an array, and I guess it can be of different lengths to each iteration. The current solution is a classic CONCATENATE via shift register parallellization impossible paintings, but there should be a work around, right?

    /Y

    Hi Yamaeda,

    When you concat elements in an array in a loop, you need a registry to offset either by BuildArray or ReplaceArraySubset (with a predefined table)...

    A possible workaround: when your Subvi bays differ in length, place them in a cluster. So you can use autoindexing to build a cluster of the table - with the disadvantage of needing another loop to concatenate the subtables later...

    Is this useful?

  • Measure cc using BasicDC-RMS and AvgDCRMS

    Hello

    I intend to calculate the continuous component of a noisy signal. Both the BasicDC-RMS and AvgDCRMS vi will give it the output under the waveform but how to get them as a constant instead of show with the waveform. The domain controller is component of the signal obtained will be used for the calculation later with a formula.

    Thanks in advance.

    Use Mean.vi of mathematics > probability & statistics palette on the component Y of the waveform.

    Lynn

  • convert the entire 1 d array element

    Anyone know how I can extract the value (element) in a 1 d table so that the output value is a whole number?  I have problems of incompatibility signal (again).  I need to use the particular item of an array in various blocks of math that is add

    Bunnykins wrote:

    I tried using the table to Index, but it still does not work.  The output of the array Index is still in the format of table 1 d.

    If the entry is a 1 d table, the output of the index table is a scalar. (Only if the entry is a 2D array (or above), and not all the clues are wired, you do not get a scalar)

    Make sure you're really wired to the output and not already wired or similar entry.

  • Personal use of Windows 8 license - what exactly is "personal use".

    Dear forum,

    can I use personal use license in the following scenarios:
    (a) a company is building computer for his own use of components of the computer, the computer will not be sold to an end user.
    (b) a company is installing secondary OS on the second partition on their own computer that will not be sold to an end user.

    The Microsoft Web site is not clear.

    For an example, look at the page:

    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/Windows-licensing-for-personal-use.aspx#fBid=1KeQMgmGMCd

    Quote: "software manufacturer of system 8.1 Windows does not allow personal use." If 'personal use' means "use by amateurs for private things", this statement is meaningless.

    One possible interpretation is that the "personal use" means in fact that operating system "does NOT serve to preinstall the operating system on a client system, you build to sell to an end user".

    Thanks for the responses,
    Matej

    Hello

    You can find more information about licensing from these links:

    http://OEM.Microsoft.com/public/worldwide/licensing/OEM_System_Builder_Licensing_Guide.PDF

    http://www.Microsoft.com/licensing/

    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/index.aspx#fBid=rU2QrNFA6dn

    I suggest you to go to your center of local Volume Licensing support for more information.

    https://www.Microsoft.com/licensing/ServiceCenter/help/contact.aspx

    I hope this helps.

  • How to get out of scheduled using web service api report

    Hello

    By using the api service report I can run the report query and get the result and save it in a file. But as I'm under the report directly I don't see report running history in BIP UI. (Or there is a way to do what I don't know.)

    So I create a task report and the request for a change it and then call using the api planning service and it works properly gives me a return identification work and I see the history for a job at the BIP UI.

    But I can't find a api that gives me the result of this work.

    All of the suggestions.

    I use eclipse, cfx to generate stubs, and it's a simple java program with access to the web service

    Obtained, he works as below.

    1. Call scheduleReport on SchedulerService to schedule a report and get the scheduled_job_id.
    2. Call getAllScheduledReportHistory on SchedulerService using scheduled_job_id to get the work history that includes the work of the child created by the Scheduler for above child_job_id scheduled_job_id.
    3. Call getScheduledJobInfo on SchedulerService using child_job_id to check whether the job has finished if it is wait for a while, then try again until the work is either successful or failed. The api returns object JobDetails
    4. If the job is successful then check if xmlDataIsAviable for the above job details. If Yes, then call getXMLData on SchedulerService using child_job_id which gives a byte array, write this array of bytes on the disk using the java.io library
    5. Call getScheduledReportOutputInfo on SchedulerService using child_job_id for the information of reportOutput, which is a list of cases
      more than one output format is specified in the report definition to the bi pub. Scan the list for the output_id for the data to the desired output format.
    6. Call getDocumentData on SchedulerService using the output_id above, which gives an array of bytes of report data, and save it using the java.io library

    If you want to avoid voting in step 3 you can configure a httpserver in bi publiher, which is basically a servlet url of a Web application deployed on a server

    Select Server Name URL Default Delete
    BiPubReportsWebApp http://hostname:PortName/webappnameWebApp/servleturi

    and when planning the report in step 1, you can specify these options in the ScheduleRequest element

    scheduleRequest.setNotificationServer (notificationHttpServerName) / /notificationHttpServerName = BiPubReportsWebApp

    scheduleRequest.setNotifyHttpWhenFailed (true);

    scheduleRequest.setNotifyHttpWhenSkipped (true);

    scheduleRequest.setNotifyHttpWhenSuccess (true);

    scheduleRequest.setNotifyHttpWhenWarning (true);

    So when the work is done bi publisher will make a post to you request httpservlet with jobid, reporturl, jobstatus, so you can use this jobid (which corresponds to the id of child labour) to perform steps 4 and following

    Another thing to note is step 6 gives the byte array return which may be huge in big reports and you can go outofmemeory in this case

    (1) request to the server to save the xml data and output on the server and returns the path where these files have been saved by using downloadXMLData and downloadDocumentData to the SchedulerService, and then tokensize the string to get the last piece

    (2) call downloadReportDataChunk of the report (in a loop) service to get the data for the xml data and the document into segments giving him the name of the file in step 1, a start index and chunksize

    While (offset! = - 1) {}

    LOG.debug ("Getting chunck number :->" + counter + "index :->" + beginIdx);

    ReportDataChunk reportDataChunk = getReportDataChunks (tmpFileNameOnServer, beginIdx, util.chunkSize);

    data = reportDataChunk.getReportDataChunk ();

    output. Write (Data);

    beginIdx = beginIdx + util.chunkSize;

    offset = reportDataChunk.getReportDataOffset ();

    counter ++;

    }

    public ReportDataChunk (String starts, int beginIdx, int size) getReportDataChunks survey com.oracle.xmlns.oxp.service.v2.reportservice.OperationFailedException_Exception,

    {com Oracle.xmlns.OXP.service.v2.ReportService.AccessDeniedException_Exception}

    ReportDataChunk reportDataChunk is getReportServicePort () .downloadReportDataChunk (starts, beginIdx, size, getUsername(), getPassword());.

    Return reportDataChunk;

    }

    Note: when you schedule a report using schedulereport pub bi api back you a job id but matching so that it creates a Collard work with a different id that does the job and this childjobid is given when using the method of notification httpserver.

  • How to use the input as VC Atttibutes string?

    Hello everyone,

    I'm discovering VCO. And I need your help.

    How can I use input string as a VC attributes at the end? Then, use this return as input for another workflow.

    The workflow that I am putting in place is:

    1-name of the VM to search in vCenter: input String (example: 'TOTO')

    2-search 'TOTO' virtual machine in the vCenter, if found then

    3 - use this result to clone a VM TOTO

    For stage 1 and 2, it works, I can search based on the input of the chain and get a result.

    But for step 3, I use another workflow 'Create virtual machine' and we must put a VC:VirtualMachine.

    And it does not work because the type I get to step 2 is not compatible with the entry for step 3.

    Progressive input signal 3 waiting for VC:VirtualMachine

    And the output of step 2 is the table / VC:VirtualMachine.

    I tried to change the input type for step 3 as table / VC:VirtualMachine.

    Whenever I got the error message:

    TypeError: Cannot find the cloneVM_Task function in the DynamicWrapper (Instance) subject: [VcVirtualMachine]-[class com.vmware.vmo.plugin.vi4.model.VimVirtualMachine] - VALUE: VirtualMachine, vm-907 > "LYNC01." (Name of the dynamic Script Module: cloneVM_1 #13)

    I don't want the workflow using the VC search plugin, but I need to set the input parameter.

    If someone has an idea.

    Thank you all.

    Keep the entry for step 3 as VcVirtualmachine (only one), but add an extra step:

    2.5: get the first (or last, should not question: I hope that you will find only one :-)) table.)

    You can do it in Javascript, using the method. pop() from an array.

    var sourceVM = foundVMs.pop () / / sourceVM is of type VcVirtualMachine, foundVMs table/VcVirtualMachine

    See you soon,.

    Joerg

  • Can you create Destinations named by using JavaScript?

    I am creating a menu option in Adobe Acrobat that uses JavaScript to parse through a large pdf document and create named destinations by using the titles in the document.

    The titles all follow the same format unique, so I am able to identify them using regex. Once I found a title, I identify also the page it's on--and I store several times the title and the page in a table.

    My plan was to create named destinations using the information stored in the array. However, I did have a lot of chance to find how to create destinations named with JavaScript.

    Any input would be appreciated.

    Not possible with Acrobat Javascript.

  • Using data tab causes SD blacklist users! Why is this happening?

    Several SQL Developer users in our working group have recently been blacklisted by our COMPUTER service for the filing of applications between large tables for hours. Many of these users said emphatically that they had not submitted ALL requests. Finally someone has theorized that by clicking the data tab to display multiple lines of data can cause SD to submit a select * query to Oracle. Yikes! There are now hundreds of users out there using SD with more to come on board each week within the company. Can such an innocuous action click on a tab actually cause this problem and if so how to prevent overall SD to do this?

    >
    If what people are saying about this forum is true, that unbeknownst to the user, by clicking on the data tab, in the background, submit a select * to the entire table, then the SD software should be smart enough and courteous enough give the user a warning and the choice to continue or to limit the number of lines delevered! No ifs, ANDS or goals in this regard.
    >
    The number of rows retrieved in fact whenever the server uses the parameter preferably 'Sql Fetch Array size'. By default, this setting is "50". You access it by ' tools-> preferences-> database-> advanced.

    The user can choose to scroll through the lines as much as desired. If the user does no scrolling beyond 50 lines then no lines is extracted.
    >
    It is precisely this that developer SQL must do out of the box!
    >
    And that IS what SQL does "out of the box" program
    >
    Several SQL Developer users in our working group have recently been blacklisted by our COMPUTER service for the filing of applications between large tables for hours. Many of these users said emphatically that they had not submitted ALL requests. Finally someone has theorized that by clicking the data tab to display multiple lines of data can cause SD to submit a select * query Oracle
    >
    A ' SELECT * FROM MaTable "query does NOT run for hours. This query will almost always perform a full table of the table scan since rarely any index contains ALL the columns in the table whose columns NULL (null columns are not indexed by index piles; only by bitmap indexes).

    A full table (without an ORDER BY to sort the data) scan bed simply all the blocks of the table. Reading won't stop any other user/session to execute any DML they need.

    A user can choose to SORT the data, and in this case Oracle will sort the array INTEGER BEFORE it can return data to the user. A sort can certainly use a lot of resources in the background and can certainly hinder other sessions/users who need these resources.

    But the question of the SORT applies to ANY tool used including 'SQL Assistant'. No tools exist that can feed 20 lines sorted to the user BEFORE the data has been sorted. And no tools exist which can exercise ANY control over the process of sorting of Oracle. The tool will get all the data until sorting is 100 percent complete.

    Always make sure you are comparing the same use case when you make comparisons like that.

    1. Basic use of the selection of a data tab sql developer issues a select * FROM... query for backup

    2. If the filter options have NOT changed to include the query will run very quickly and extract the first 50 lines of sorting. Additional lines will be taken ONLY if the user asks for them.

    3 pure SELECT * QUERY does NOT work for hours on the backend.

    4. ANY tool which issues a select * FROM... ORDER BY query causes Oracle perform a full table scan.

    5. the probable cause of what appears to be a simple SELECT * QUERY is usually a user who selects the tab data and then go home for the weekend, leaving their machine. This query will remain the library cache and the session will remain, but there is no real activity or resource use.

    If you have evidence that flies in the face of the foregoing, please view details.

    As mentioned by another reviewer, the user CAN perform

  • deleting values from table using splice... back 2 skool 4 me.

    NSN

    I have a dim multi table that contains several values grouped.

    say [] table [1] has 4 different values.

    I tried to remove 1 set of values of this by using the function of the weld.

    1st thing I noticed is that the using array.length does not work because he gets dynamic altered after every junction. He would remove while half of the lines.

    No worries... the value .length moved a var before the loop. and hop...

    or... not really

    Now he always leaves 1 row behind in the table because the table index ends at beeing 1 (finally left and my loop counter is greater than.)

    So... I added a loopctr = 0 at the end of each splice for it will re-start the loop to the beginning of the table.

    Still does not work...

    Now, I get a runtime error on an object not existing... the value of something...

    Basically, my programming techniques are on dated apperently of... tweaking it until it works is to transform my spagetti code...

    Good food but a mess to clean up.

    So now... What I use is:

    make a temporary array, press in each row that is NOT what I wanted to delete.

    Zero of my table, and then copy the temp

    * My father just turned in his grave in disgust.

    Can someone tell me please the correct way to use splice? or any child model nesting list?

    Which is higher

    Mac

    You can use the Array.filter () method to do this:

    var myArray:Array = [];
    myArray.push([1, 1 , 0, 0, 1]);
    myArray.push([1, 1 , 0, 0, 1]);
    myArray.push([2, 1 , 1, 2, 1]);
    myArray.push([1, 1 , 0, 0, 1]);
    myArray.push([2, 1 , 0, 50, 1]);
    myArray.push([1, 1 , 0, 0, 1]);
    
    myArray = myArray.filter(arrayFilter);
    
    trace(myArray);
    
    function arrayFilter(element:Array, index:int, array:Array):Boolean {
        return element[0] != 2;
    }
    
  • Iteration through array of complex data on different properties object

    I'm not sure that my title is correct.

    Is there any library 3 rd-party on AS3.0 (such as the STL in C++), for this:

    I have set my class and use its objects as an associative array, for example:

    Enterprise-class {}

    var public name;

    public var logo;

    var public address;

    telnumber public var;

    }

    And a kind of data structure class (say, list) allows you to store some objects of type company. And then I set my own comparison function and research on this list category (that is, replace the default); in my role, I could specify what attribute (name or address or phone number) to perform research, and how it would be done.

    Could someone help? Thanks in advance.

    @Ken: "this is a standard class/method, you don't need to extend or to use the custom class.

    Well, theoretically it is always better to have a data type in instead of using the generic object. The practice is another story...

    Here's a simplified example of how Array.filter () can be used with a custom - data type in this case it filter instances of values based on the property value, well, value.

    Place the two classes in the same file and make ValueSort a document class:

    package
    {
        import flash.display.Sprite;
    
        public class ValueSort extends Sprite
        {
            private var array:Array;
            private var searchValue:int = 0;
    
            public function ValueSort()
            {
                init();
            }
    
            private function init():void
            {
                array = [];
                for (var i:int = 0; i < 10; i++)
                {
                    array.push(new Values(i));
                }
                trace("before filter");
                traceArray(array);
                searchValue = 4;
                var searchResult:Array = array.filter(filter);
                trace("after filter");
                traceArray(searchResult);
                searchValue = 7;
                searchResult = array.filter(filter);
                trace("after filter 1");
                traceArray(searchResult);
            }
    
            private function traceArray(arr:Array):void
            {
                for each (var value:Values in arr)
                {
                    trace(value.value);
                }
            }
    
            private function filter(element:Values, index:int, arr:Array):Boolean
            {
                return Values(element).value > searchValue;
            }
    
        }
    
    }
    
    package
    {
    
        public class Values
        {
            public var value:int = 0;
    
            public function Values(v:int)
            {
                value = v;
            }
    
        }
    
    }
    

Maybe you are looking for

  • HP 15 Notebook PC: Wifi connectivity problem

    Please help me because I am unable to connect wifi normally. Whenever I want to connect to my wifi, I struggle with my computer for atlest 1/2 hour. For a while, it shows my network in the list of networks and after selection and pasword it throws an

  • HP PAVILION 15-n071nr: digital keyboard of HP PAVILION 15-n071nr does not work

    everything works fine on this computer with the exception of the keypad - most of the keys do nothing 1 connect a usb keyboard gives the same results 2. sometimes by pressing 9 acts as the top and arrow down 3. sometimes by pressing the 3 acts as the

  • T440s - Win7 driver - unknown device

    Hello I installed Windows 7 64 bit on my T440s and now I have an unknown device in Device Manager. Could someone point me to the right direction for which driver I need? The hardware ID USB\VID_138 & PID_0017 & REV_0078 USB\VID_138 & PID_0017 I could

  • changes to the sound scheme are not saved

    I can't change the sounds associated with events, via the control panel - sounds and audio devices - sounds. When I make changes that they do not stick. They change what they were before.  The only way to change the sounds associated with events is t

  • To organize!

    My computer is a mess.  How can I organize my email address, pictures, videos, music and all the files and folders to go where they are supposed to go?  I have 5 folders of DOCUMENTS, my PIX is in my MUSIC folder and I have a few DOCS in there, too.