Table 1 d with rejection of the two consecutive points
Hello
I have table 1 d with 10 measuring points. I treat points in pairs and according to the difference between two consecutive points, I have decision weather the two points must remain in the table or should be rejected. For example, my 1 d table looks like this: 10, 20, 30, 35, 40, 44, 50, 51, 60, 69. I calculate the difference between consecutive points by pairs: 20-10 = 10, 35-30 = 5, 44-40 = 4, 51-50 = 1, 69-60 = 9. I would like to reject the table points with the value of the gap less than 2. In my case, the points are 50, 51 and the table after the rejection should have 8 items and look like this: 10, 20, 30, 35, 40, 44, 60, 69. What is the most elegant way to do it? I'm in LabVIEW 8.6.
Thanks in advance!
Review your original message and your example to better understand your stated requirements.
"I treat the couple points."
You have to take into account only the pair of 1st and 2nd point, then don't take into account the point of 3rd and 4th pair so on and so forth.
Never consider the 2nd to 3rd or her never consider the 4th to the 5th, so on and so forth?
What is your table? If it is very large (1000000 points), you may need to consider other options for the use of memory and speed.
Tags: NI Software
Similar Questions
-
Seamless roaming with EA7500 + RE7000 the two AP work?
I have a wired router provided by my ISP at home and a few wireless (wired connection to the router, DHCP off) covering the rooms. The experience of homelessness is terrible, and I am considering buying an EA7500 and a RE7000 to replace my existing APs.
But after this post EA7500 is not compatible 802.11r. It is a surprise for me. I would like to know which of the following configurations provides the best mobile experience, or are they the same?
(a) 1 EA7500 + 1 RE7000, both working as AP, wired to the router;
(b) 2 RE7000 works like AP, wired to the router.
With option one) I also use EA7500 for storage network etc., but homelessness experience matters more for me.
If the two Linksys RE7000 are both connected to the router, they will act as an Access Point, however, adding another extensions (RE7000) wireless to remote locations is possible depending on the coverage of your network. BTW, check out this link how to configure 2 Linksys RE7000 for seamless roaming. You can also check out this other link to set up your RE7000 with a Linksys Max-Stream router.
Jay-15354
Linksys technical support
-
select lines with garbage (not the numbers and point symbols)
Hi all! I've got varchar2 column where users insert what they want. But this column is used for the value of numbers (from 0.00 to 100.00). How can I select only the number and the symbol dot:
NVL (ABS (regexp_replace (Replace(Avalue,',','.'),'[^ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0,.,]')), 0)
Now, I need to select lines with symbols of the trash to correct errors. How do I "invert selection"? I mean by selecting only the lines that are composed of waste (except the numbers and the dot symbol).
Thanks in advance.You can try this
select trim(translate(replace(avalue,',','.'),'1234567890.',' ')) from dual
If the symbols of the trash will be inserted then it will return that
-
Conditional highlighting with checkbox in the two cells by the numbers
I have two columns.
Check boxes, the other contains text.
I want to apply formatting conditional for text, based on the checkbox (true/false) value.
Hi Bebaj,
Add another column (C in this example). You can hide C when everything works.
Formula in C2 (fill down)
= IF(A2,B2,"")
A tick in a check box inserts the value of B in C, another "" (NULL)
Conditional highlighting in column B
Kind regards
Ian.
-
To set up my Outlook Express, questioned, by sending an e-mail with the download, to provide the above hosts "addresses", I have inserted the wrong information ignorance. Now cannot send and open downloads, I try to access the page in question again and RE-ENTER the RIGHT "addresses", but all in vain. Can someone help me to access this critical page, I could revisit the functional plan online? PLEASE?
Open Outlook Express, click the Tools menu, click accounts, click Mail, click Properties, verify each tab and enter the correct information. If you don't know, your ISP will give you the correct information.
-
When I open the Fire Fox, click Hotmail, it opens the page with the open.cannot of the Inbox folder, click on anything? Cannot open the mail, or all records thereon, the cursor turns into a finger, but nothing opens or closes in all? reinstalled evrything, made a restore point. It works on all browsers, but firefox? use fire fox for years?
I found the problem. It's the ad block plus 2.0. I just noticed that I was disabling each of them was. I noticed in Firefox that the envelopes have disappeared! That's why the post did not open, so in safe mode with disabled modules returned envelopes. then I restarted in reg mode and then turned off one-by-one. It was the adBlock Plus 2.0. Thank you for your advice. I would have never found. Thank you!
-
Gateway MD series laptop Vista OS.
I tried to install disks system recovery, ordered the bridge.
The machine do nothing, black screen, no prompt, no way to install the OS, no start upward
Hello
did you put the dvd player must be 1st in the boot order
to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start
It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu
Change boot order it do dvd drive 1st in the boot order
http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/
_______________________________________________________
If you have problems with the process of recovery of manufacturers, contact the manufacturer
It's their recovery process not microsofts
-
Comparing the sum of the two tables and correct by difference of amount in its second t
Hello guys,.
I have a very difficult task that I can't get my head around.
The sample data looks like this:
Master table
Request - booking - debit - credit - MasterAmout
1------------1----------------D---------------------------------15.3
1------------2----------------D---------------------------------480.6
1------------3------------------------------C-------------------496.8
------------------------------------------- 0.9
The slave table
Demande---reservation---debit---credit---slaveamout---slavecorrection
1------------1------------D------------------------------------15.3---------------14.5
1------------2------------D------------------------------------480.6-------------480.6
1------------3-----------------------------C-------------------496---------------496
-------------------------------------------0.1--------------------------------------0.9
The reservation have a total amount of 0.1, but must be corrected to 0.9 because the main table has 0.9.
Reservation 1 requires a correction so the slave table also has a total of 0.9 (business rule is, only corrections on the first booking). So we have
to change the amount of 15.3 to 14.5. I plan my SQL like this:
1 reservations sum of two tables for each claim. Compare the two for each individual claim.
2. If Captain sum the amount shows a difference between master / slave
2.1 select top 1 table reservation slave for the specific claim and increase/decrease by the difference of these two amounts.
Who is?Hello
Use MERGE to actually do the UPDATE.
The ROW_NUMBER analytic function to identify the first booking in slave (unless you can count on which the reservation = 1).MERGE INTO slave dst USING ( WITH master_summary AS ( SELECT claim , SUM ( master_ampount * CASE WHEN debit = 'D' THEN -1 WHEN credit = 'C' THEN 1 END ) AS balance FROM master GROUP BY claim ) SELECT s.claim , s.booking , SUM ( s.slave_amount * CASE WHEN s.debit = 'D' THEN -1 WHEN s.credit = 'C' THEN 1 END ) OVER (PARTITION BY claim) - m.balance AS diff , ROW_NUMBER () OVER ( PARTITION BY claim ORDER BY booking ) AS r_num FROM master_summary m JOIN slave s ON m.claim = s.claim ) src ON ( src.claim = dst.claim AND src.r_num = 1 ) WHEN MATCHED THEN UPDATE SET dst.debit = CASE WHEN src.diff < 0 THEN 'D' ELSE NULL END , dst.credit = CASE WHEN src.diff < 0 THEN NULL ELSE 'C' END , dst.slaveamount = ABS (src.diff) ;
If you would care to CREATE TABLE and INSERT statements for the sample data (showing the two tables, as they exist before the DML) then I could test this.
The design of history seems very uncomfortable. Instead of the debit and credit columns, it would be much simpler to have positive and negative amounts. Is it really worth now both not corrected and corrected the amounts in the table on the slave, especially if you keep only versions corrected debit and credit columns?
-
Join the two trees connect by prior Start With and return only common records?
Oracle 10g Release 2 (10.2)
I have two tables which have structured data. The results, when running queries individually are correct, but I need to join tree a tree two to get only the common records between them.
-Trees a
SELECT ip_entity_name, entity_code, hier_level, entity_parent
Of ip_hierarchy
WHERE hier_level > = 3
CONNECT BY PRIOR Entity_code = entity_parent
START WITH entity_code = "MEWWD";
-The two tree
SELECT ip_entity_name, entity_code, hier_level, entity_parent
Of ipt_hierarchy
WHERE hier_level > = 3
CONNECT BY PRIOR Entity_code = entity_parent
START WITH entity_code = "IPNAM";
If I understand correctly, the joints can not work with CONNECT BY / START WITH queries?
A WITH clause is an option?
If possible, I don't want to put a selection in a database to display object and join against other queries.
Thank you.Hello
jtp51 wrote:
Oracle 10g Release 2 (10.2)
...
If I understand correctly, the joints can not work with CONNECT BY / START WITH queries?Before Oracle 9 it was true. Since you're using Oracle 10, you can if you wish; but I'm guessing that you don't want in this case.
A WITH clause is an option?
If possible, I don't want to put a selection in a database to display object and join against other queries.
Yes, a WITH clause that is an option. Viewed online, as Zhxiang has shown, are another option. Either way gives you a regular display effect without creating a database object.
You did not show a sample and the results, so no one can tell if a join is really what you want. Other possibilities include INTERSECT or an IN subquery.
-
Findout incompatibility records between the two tables.
I need help on findout the unmatched records between two different tables.
Each table has a + 42Crores Records.
The type of data (Char) are the same for the two tables but datalength is different between a table and the table B.
Indexes are created on the two tables on the required fields
There is no Geom data exists on the two tables.
For example:
A Table: =.
Number of records + 42Crores
Rating: TOLD char (20)
Table B: =.
Number of records + 42Crores
Field: TOLD Char (16)
I took individual accounts, there are number of difference is 3868 only, with respect to the count (*) selection.
I ran the query "Select TOLD OF A LESS SELECT TOLD OF B", but I don't have the answer.
Please let me know how to solve the problem.The variable length char shouldn't be a problem...
You just need to ensure that the first table has more lines than the second, if the problem persists You ' l I hide it, and then use a column alias...Let know us...
-
Down, enjoy a 2D array and the average of the two numbers
the problem: first Coloum (A) 6635 elements, the 0.15 to 30 one-step 0.0045, second coloum (B) random numbers of DBL.
Down in the a sample of linear to 30 points (1-30)
Take the average of the two data points in B that correspond to the upper and lower each step limit.
a link below illustrates well the im data works with.
ex: (A, 189) = 0,996 (B, 189) = 29,83
(A, 190) = 1.0005 (B, 190) = 34.41
(ONE, 412) = 1.9995 (B, 412) = 17.13
(ONE, 413) = 2.004 (B, 413) = 14.88
This would be the first point in the new array (A, 1) = 1 B, 1 = 32.12
and the second point would be (A, 2) = 2 B, 2 = 16.005
The only whole number has is 30, and its value in B will be used
How would sort the table to find these values, without the use of 60 search for items?
and once you find the item, tell him to recover the data in the next coloum?
Once it is towards math nodes or node formula will end the vi.
Thanks for any help
BESIS
-
How to show the two original and change the line
I have a table looks to and it store the two original and change lines, how can I get the Original lines both edit? In this case, I want to display the first two lines (all columns are composite keys)
In the meantime, I use more Partition BY with line number, but I get a line
flag
APPNO
EXAM
TYPE
EXAM
YEAR
EXAM
MONTH
Object
Origin
1234567890
HL
2015
01
Art and Design
Edit
HL
2015
01
Art and Design
origin
SL
2015
01
Math
New
SD
2015
01
English
Please check this one, I think it can meet your needs.
SQL> with meta_data (flag,APPNO,EXAM_TYPE ,EXAM_YEAR ,EXAM_MONTH,SUBJECT) 2 as (select 'Origin',1234567890,'HL',2015,01,'Art and Design' from dual union all 3 select 'Edit',1234567890,'HL',2015,01,'Art and Design' from dual union all 4 select 'origin',1234567890,'HL',2015,01,'Math' from dual union all 5 select 'New',1234567890,'HL',2015,01,'English' from dual ) 6 select * 7 from meta_data 8 where exists ( select 1 9 from meta_data outer 10 where flag ='Edit' 11 and meta_data.APPNO =outer.APPNO 12 and meta_data.EXAM_TYPE =outer.EXAM_TYPE 13 and meta_data.EXAM_YEAR =outer.EXAM_YEAR 14 and meta_data.EXAM_MONTH =outer.EXAM_MONTH 15 and meta_data.SUBJECT =outer.SUBJECT) 16 / FLAG APPNO EX EXAM_YEAR EXAM_MONTH SUBJECT ------ ---------- -- ---------- ---------- -------------- Edit 1234567890 HL 2015 1 Art and Design Origin 1234567890 HL 2015 1 Art and Design SQL>
-
Search table for 0 or 1 throughout the course of
Hello. I have a column of data with 530 000 lines. The only values are a 0 or a 1 (1 represents the occurrence of an event; 0 does not work). I would like to be able to determine the amount of 0 seconds between each consecutive occurrence of 1 throughout the whole picture. For example, I would be able to determine the number of zeros (e.g., lines) between the first and the second 1, the second and the third 1, third and fourth 1, etc., and then determine the average. Using 1-d search function array makes it easy enough to do for a few instances, but I can't find how to search in all the lines of 530 000. Thanks in advance for your help.
MattStock1984 wrote:
Forgive my ignorance, but implementation of a reading of the worksheet with an indexed table leads to a constraint on the U8 function point and my average output is the size of the array (e.g., length of string). Can you tell me where I'm wrong? I have attached a sample data file that I use.
- Nothing wrong with coercion. (However, I told you to convert in U8 in my instructions to your table of preparation)
- You have not added 48 as in my code. Why not? (If you add no 48, your delimiter must be defined as a character unprintable special (x 01), making it difficult to read code. (Also, if you do not add 48, the character '1' (ASCII 49!) will never happen and you get the full length as expected).
-
creating table of partition with null values
Hello
I have a table with 20 GB of data. I changed this table in the table to partition with partition of the range
the column with which I took for range (date), holding the values null
can I have a partition for null values?Hello
CREATE TABLE ICBS. KNET_STMT_EXTRACT_NEW_P
(
SRVC_TYPE VARCHAR2 (200 BYTE),
FILLER_1 VARCHAR2 (200 BYTE),
RTE_STAT VARCHAR2 (200 BYTE),
TRAN_DATE VARCHAR2 (200 BYTE),
TRAN_TIME VARCHAR2 (200 BYTE),
POST_DATE VARCHAR2 (200 BYTE),
DATE OF REC_INSERT_DT,
DATE OF PROCESSED_DATE,
KNET_RECON_RESSON VARCHAR2 (100 BYTE),
NEW_TRAN_DATE VARCHAR2 (10 BYTE),
REASON VARCHAR2 (200 BYTE)
REASON_IND NUMBER (5),
NODE_ID VARCHAR2 (8 BYTE),
PROGRAM_ID VARCHAR2 (8 BYTE),
USER_ID VARCHAR2 (8 BYTE),
TIME_STAMP DATE
)
ICBS TABLESPACE
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
64K INITIALS
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
LOGGING
PARTITION BY RANGE (REC_INSERT_DT)
(KNET_STMT_EXTRACT_NEW_P_DEC11 PARTITION VALUES LESS THAN (TO_DATE (' 2012-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
LOGGING
NOCOMPRESS
ICBS TABLESPACE
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
INITIAL 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
DEFAULT USER_TABLES
),
KNET_STMT_EXTRACT_NEW_P_JAN12 PARTITION VALUES LESS THAN (TO_DATE (' 2012-02-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
LOGGING
NOCOMPRESS
ICBS TABLESPACE
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
INITIAL 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
DEFAULT USER_TABLES
),
PARTITION KNET_STMT_EXTRACT_NEW_P_MVAL VALUES LESS THAN (MAXVALUE)
LOGGING
NOCOMPRESS
TABLESPACE TBL_MAXVALUE
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
INITIAL 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
DEFAULT USER_TABLES
)
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING
ALLOW THE MOVEMENT OF THE LINE;Published by: hitgon on April 30, 2012 10:56
Published by: hitgon on April 30, 2012 10:58
Published by: hitgon on April 30, 2012 10:59
-
The two problems with sub form of table, associated with check boxes
Hi all -
Jari already helped me thereby once last week, but I'm running into some new questions.
http://Apex.Oracle.com/i/index.html
workspace: Leppard
username: Guest
PW: app_1000
Application: MyTestApp
Maybe I need to split these into two questions, if so just let me know.
Question 1: On the first tab (tab 1 report) I have a simple tabular presentation based on the EMP table. The column of the box on the far right, when checked restores the Ename column readonly. The problem is that it only works one way. Unchecking the checkbox is not cancel the read-only.
It is javascript code that I have on the page:
The attribute of the element on the checkbox column isfunction test(pThis) { //get the current row index on change var currIndex = $('input[name="'+pThis.name+'"]').index(pThis); // check current items value (return value of lov) if (pThis.value=='Y') { $('input[name="f02"]')[currIndex].style.backgroundColor = "LightGrey"; $('input[name="f02"]')[currIndex].readOnly=true; } else if (pThis.value=='N') { $('input[name="f02"]')[currIndex].style.backgroundColor = "Red"; $('input[name="f02"]')[currIndex].readOnly=false; } }
(It seems to work although I use onClick or onChange so I don't know if that makes a difference).onClick="javascript:test(this);"
But the main problem is that the code does not recognize the value of "n" in the column. I checked with firebug and columns I have untick are definitely on 'n', but I can't get javascript code to recognize this value. Even if I take the "ElseIf" code and just change the first part to (pThis.value ==' no) still does not work. There seems to be something with the value "n" recognize themselves do not, but I can not understand.
Question 2: on the second tab - tab report 2. The same report but this time, I use a javascript character counter similar to that described in the sample application of the Dene (page 276 > http://apex.oracle.com/pls/otn/f?p=31517:276:19207673535900:NO). The counter of characters on the Ename field include javascript and an expression of HTML on the Ename column. The counter works fine, but now, the javascript code to make the column readonly work over all.
Any ideas on these are much appreciated!
Thanks in advance,
John- Please please understand what HTML is generated and how to inspect. Once you do this, you can easily eliminate many problems with selectors not seeming to work. A text box is not an input for example element.
- Boxes rely on the checked, not the value property. Apex circumvents this by creating a hidden extra element which will get the value based on the checked property of the visible checkbox
- Do not use these horrible onchange and onclick attributes :( Use a dynamic action or jQuery to bind events.
- Do not apply a style via javascript. Use CSS for this drive as with jQuery, you can easily add, remove, or toggle the classes too. And if you know jQuery selectors, you can understand css selectors because they are substantially the same.
- I don't know why people insist on using rowIndex or substringing ID. I find it unnecessary and more complex that the alternative (crosses with jQuery)
- The difficulty also in things into action through pagination. Running on just the visible page it of a trifle, but through paging requires more work than just check "fire on loading the page" is not enough. I'm sure you'd want your ENAME either red or gray column and readonly as soon as the page is loaded, and not when you start typing in the box...
- Please please understand what HTML is generated and how to inspect. Once you do this, you can easily eliminate many problems with selectors not seeming to work. A text box is not an input for example element.
Form 1 tab: copied to Page 12 and made my changes here:_
- OnChange on ENAME. This removed. No idea why you would need it there seems a crutch for not having the field in the desired state when the page is loaded.
- OnClick on CHECKBOX. Removed what I hate these attributes. Replaced by a dynamic action.
- Dynamic action "checkbox: ENAME readonly value."
- Event: After refresh
- Selection type: region
- Region: Form of tab 1
- No condition
- Scope of the event: static
- Real Action
- Run the JavaScript Code
- Fire on loading the Page: YES
- Code:
//at page load and after each region refresh: //each: check all checkboxes and set readonly on ename accordingly //click: when the checkbox changes, change ename accordingly $("td[headers='CHECKBOX'] input[type='checkbox']:visible") .each(function(){checkReadonly(this);}) .click(function(){checkReadonly(this);});
- Run the JavaScript Code
- Event: After refresh
function checkReadonly(pCheck){
var lCheck = $(pCheck);
lCheck.closest("tr")
.find("td[headers='ENAME'] input:visible").each(function(){
$(this).prop("readonly", lCheck.prop("checked"));
});
};
td[headers='ENAME'] input{
background-color: red;
}
td[headers='ENAME'] input[readonly]{
background-color: lightgrey;
}
CSS works so much better for this than the application of style through js...
Form 2 tab: copied to Page 13 and made my changes here:_
- OnChange on ENAME. This removed. No idea why you would need this.
- OnClick on CHECKBOX. Removed what I hate these attributes. Replaced by a dynamic action.
- Dynamic action: identical to page 12, just modified trigger area
- Changed input to TEXTAREA when it is required:
- Page > function and global variables declaration
function checkReadonly(pCheck){ var lCheck = $(pCheck); lCheck.closest("tr") .find("td[headers='ENAME'] textarea:visible").each(function(){ $(this).prop("readonly", lCheck.prop("checked")); }); };
- Page > CSS Inline
td[headers='ENAME'] textarea{ background-color: red; } td[headers='ENAME'] textarea[readonly]{ background-color: lightgrey; }
- The f_set_counter function, I changed a bit: there are 2 straps too, put a semicolon at the end of each line.
-Change $x (node) .value $s (node, value) and $v (node)
-changed $x (node) .innerHTML to $(node) .text)
I know: it worked. I like this better. OCD? :/
function f_set_counter(pThis,pLength,pMaxLength,pReset)
{
if (pLength>pMaxLength){
alert('The maximum length of '+pMaxLength+' exceeded.');
$s(pReset, $v(pReset).substring(0,pMaxLength));
$("#"+pThis).text(pMaxLength);
}else{
$("#"+pThis).text(pLength);
};
};
Published by: Tom on February 15, 2013 12:48
Made a mistake in the case of dynamic action :->, click after refresh!
Maybe you are looking for
-
http authentication fails on all sites, don't ask for user/pass
Hello After an update of apt - get, sites that use HTTP authentication do not ask for credentials and go directly to HTTP:401. It only affects this browser, others have no problems. I've also updated a FF in Windows, no problem there after the update
-
BSOD at least a few times per day
My computer is the blue screen of death at least a few times a day now, with increasing frequency. It restarts immediately after and then work as normal until the next crash. Is the code STOP: 0x0000007F (0 x 0000000000000008, 0 0000000080050031, 000
-
Problems of IPSEC Tunnel &; Port fowarding
Hello I have a couple of 837 routers connecting two sites using an IPSEC tunnel. In one of the sites, I'm redirected to static NAT port to an internal IP address That is to say. IP nat inside source static tcp 192.168.57.100 3389 3389 Dialer0 interfa
-
WSA: action in service oracle 12 c bus
HelloHow can I put a wsa: action in the pipeline in OSB 12 c?I thing I should put it to the http header using the component 'Headings of Transport' to the 'Content-Type' like this:" Content-Type: application/soap + xml; charset = UTF-8; action = ' ht
-
Creating forums or groups...
HelloCan someone tell me how to create a forum or groups in my Web site?I've been watching different sources on the internet where people can sell forums for you site, but not of them are what I'm looking for.This is the configuration I want.Think of