Sponsored Content
Full Discussion: All possible combinations
Top Forums Shell Programming and Scripting All possible combinations Post 302676997 by bartus11 on Wednesday 25th of July 2012 11:29:18 AM
Old 07-25-2012
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awk execution with more combinations..

The requirement is to extract 9 fields randomly from a 13 field CSV file to make another CSV file. While doing that, the field 7 and 8 of input csv file should comeout as field 7 of output with the value as first charecters of both 7 and 8 fields of input file(CSV file). Presently I am using... (1 Reply)
Discussion started by: mitte_dino
1 Replies

2. UNIX for Advanced & Expert Users

Combinations

Hello All, i have two files, one of the format A 123 B 124 C 234 D 345 And the other A 678 B 789 C 689 D 567 I would like to combine them into one file with three columns: A 123 678 B 124 789 C 234 689 (4 Replies)
Discussion started by: Khoomfire
4 Replies

3. Shell Programming and Scripting

Printing all combinations : Awk

$ cat key.txt #ID1 Start 1|AA1 2|AA2 3|AA3 4|AA4 #ID1 Complete #ID2 Start 1|BB1 2|BB2 3|BB3 #ID2 Complete I was required this output: AA1|BB1 AA1|BB2 AA1|BB3 (7 Replies)
Discussion started by: jkl_jkl
7 Replies

4. Shell Programming and Scripting

Generating Combinations

Hi, I need to generate all combinations upto n-1 level, if the input file looks like say, A B C D . . .... I need to generate all combinations such that first value remains constant and the remaning are combined with all possible ways. Output A AB AC AD ABC (1 Reply)
Discussion started by: zorg4u
1 Replies

5. Programming

series of combinations

HI I have a series(sorted), which i require to create combinations. I am not getting the good code for doing this. My series should generate the following combinations... Please help me in getting this in C++. Thanks for your help. A: A A B: A B A B A B C: A ... (1 Reply)
Discussion started by: rameshmelam
1 Replies

6. Linux

Help with color combinations

Hi Team when i do, echo on my host box it returns (see below) # echo $PS1 \$ I need to set a color comination of my own for \u means for user : red for \h means for hostname: blue for \W means present working directory: pink for $ means for wht prompt : yellow Do i need to... (1 Reply)
Discussion started by: whizkidash
1 Replies

7. Shell Programming and Scripting

Combinations / Permutations

Hello Scrutinizer / Group , The shell script of awk that Scrutinizer made calculate all possible permutations in this case 3125 (5 numbers) but i want to have only the 126 possible combination. For now it does not matter the specific order of the combination numbers. I would appreciate it you... (1 Reply)
Discussion started by: csierra
1 Replies

8. Programming

Words combinations without repetition

How can I get all combinations of 5 words from 10 words. For example I have 3 words and I want to get all combinations of 2 words. "A", "B", "C" it would like AB, BC, AC. Maybe you know some usefull code or example. Thanx a lot. P.S. Sorry if I'm not right enough cause I don't know English... (2 Replies)
Discussion started by: romeo5577
2 Replies

9. Shell Programming and Scripting

All possible combinations problem

Post #2 is the original post. This is the first answer to post #2 Hi, try: awk ' { match($0,/1+/) b=substr($0,1,RSTART-1) e=substr($0,RSTART+RLENGTH,length) for(i=2^RLENGTH-2; i>0; i--) { s=x; d=i while(d) { s=(d%2==0?0:1) s ... (12 Replies)
Discussion started by: Scrutinizer
12 Replies

10. Shell Programming and Scripting

awk permutations and combinations

hello, I'm reading this thread, in which there is this code :awk ' function comb(v,i) { for(i in A) { delete A; if(length(A)) comb((v?v"+":x)i) else print v"+"i A; } } { A } END { comb(); } ' infilebut I can't understand where does v come... (5 Replies)
Discussion started by: daPeach
5 Replies
Math::TamuAnova(3pm)					User Contributed Perl Documentation				      Math::TamuAnova(3pm)

NAME
Math::TamuAnova - Perl extension for the tamuanova library SYNOPSIS
use Math::TamuAnova; DESCRIPTION
This module allows you to use the tamu-anova library from perl programs. EXPORT None by default. Exportable constants anova_fixed anova_mixed anova_random Exportable functions anova anova_twoway printanova printanova_twoway USE
$hash=Math::TamuAnova::anova(DATA[], FACTOR[], J); DATA is an array of double, FACTOR an array of integer. Factors must be within 1..J DATA and FACTOR must have the same size. $hash2=Math::TamuAnova::anova_twoway(DATA[], FACTORA[], FACTORB[], JA, JB, mode); DATA is an array of double, FACTOR(A|B) arrays of integer. Factors A must be within 1..JA, and Factors B within 1..JB DATA, FACTORA and FACTORB must have the same size. EXAMPLES
$res=Math::TamuAnova::anova( [88.60,73.20,91.40,68.00,75.20,63.00,53.90, 69.20,50.10,71.50,44.90,59.50,40.20,56.30, 38.70,31.00,39.60,45.30,25.20,22.70], [1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4], 4); Math::TamuAnova::printtable( $res ); $res=Math::TamuAnova::anova_twoway( [6,10,11,13,15,14,22,12,15,19,18,31,18,9,12], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2], [1, 1, 1, 2, 2, 3, 3, 1, 1, 1, 1, 2, 3, 3, 3], 2,3, &Math::TamuAnova::anova_fixed); Math::TamuAnova::printtable_twoway( $res ); SEE ALSO
info tamu_anova AUTHOR
Vincent Danjean, <Vincent.Danjean@ens-lyon.org> COPYRIGHT AND LICENSE
Copyright (C) 2006 by Vincent Danjean This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2012-05-25 Math::TamuAnova(3pm)
All times are GMT -4. The time now is 02:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy