473,763 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Have data to fill a triangular matrix, but how do I graph it???? - Please help

I'm writing a web program where one of the sections is supposed to output a
correlation matrix. The typical correlation matrix looks like this:

..23
..34 .54
..76 .44 .28
..02 .77 .80 .99

I've written code to calculate the correlation data and it is populated in a
vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box has
both the actual number and a colour scheme that represents the strength of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google for
"triangular matrix", code, .net, visual basic, etc... and can't find out how
other programmers are doing it.

Thanks for ANY help you can give.
Steven
Nov 19 '05 #1
10 1842
Have you seen this?
http://www.inductive.com/help-doc-correl.htm

It looks simple. To draw a rectangular grid row you draw a filled rectangle,
increment by the x width, draw another, until you reach the end of one row.
Then you increment by the y height, and continue to draw rows. FillRectangle
is the method you need on Graphics. The color could be determined by
converting your floats into a scaled integer and indexing into an array of
colors (int)(value * 10).

To draw the text, you can use Graphics DrawString.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor

"Nevets Steprock" <.@.> wrote in message
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output
a correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated in
a vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box has
both the actual number and a colour scheme that represents the strength of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google
for "triangular matrix", code, .net, visual basic, etc... and can't find
out how other programmers are doing it.

Thanks for ANY help you can give.
Steven

Nov 19 '05 #2
See also Corrgrams on this page:
http://www.math.yorku.ca/SCS/Gallery/bright-ideas.html

There is a link to an excellent pdf paper on the subject.
Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
"Nevets Steprock" <.@.> wrote in message
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output
a correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated in
a vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box has
both the actual number and a colour scheme that represents the strength of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google
for "triangular matrix", code, .net, visual basic, etc... and can't find
out how other programmers are doing it.

Thanks for ANY help you can give.
Steven

Nov 19 '05 #3
look at htm tables. you should read a book on html (the bookstore is full of
them)

-- bruce (sqlwork.com)

"Nevets Steprock" <.@.> wrote in message
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output
a correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated in
a vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box has
both the actual number and a colour scheme that represents the strength of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google
for "triangular matrix", code, .net, visual basic, etc... and can't find
out how other programmers are doing it.

Thanks for ANY help you can give.
Steven

Nov 19 '05 #4
I don't see a triangular matrix. What I see is a 4X4 table, with 3 empty
cells in the first row, 2 empty cells in the second row, and 1 empty cell in
the third row. At least that's what I see in (imaginary) HTML.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Nevets Steprock" <.@.> wrote in message
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output
a correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated in
a vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box has
both the actual number and a colour scheme that represents the strength of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google
for "triangular matrix", code, .net, visual basic, etc... and can't find
out how other programmers are doing it.

Thanks for ANY help you can give.
Steven

Nov 19 '05 #5
And the problem is ? Looks like to me that a table tag should easily allow
this layout ?

Patrice

--

"Nevets Steprock" <.@.> a écrit dans le message de
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output a correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated in a vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box has
both the actual number and a colour scheme that represents the strength of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google for "triangular matrix", code, .net, visual basic, etc... and can't find out how other programmers are doing it.

Thanks for ANY help you can give.
Steven

Nov 19 '05 #6
Thanks for the info, Frank

The pdf has got me thinking of doing the extra step of sorting the matrix by
similar variables. I was surprised by the difference it makes to the chart.
"Frank Hileman" <fr******@no.sp amming.prodiges oftware.com> wrote in message
news:OQ******** ******@TK2MSFTN GP10.phx.gbl...
See also Corrgrams on this page:
http://www.math.yorku.ca/SCS/Gallery/bright-ideas.html

There is a link to an excellent pdf paper on the subject.
Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
"Nevets Steprock" <.@.> wrote in message
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output
a correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated
in a vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box
has both the actual number and a colour scheme that represents the
strength of correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google
for "triangular matrix", code, .net, visual basic, etc... and can't find
out how other programmers are doing it.

Thanks for ANY help you can give.
Steven


Nov 19 '05 #7
I suspect both Bruce and Kevin are suggesting the same. I've only started
programming for the web as of 3 months ago (~20 years of standalone
applications - nothing serious, just mucking around) and have been having a
great time with the new environment.

Since my correlation matrix will be anywhere from 2 to 16 variables, can I
use jscript to do it dynamically or would you suggest I prebuild the table
structure for 16 variables and then resize the rows as necessary?

Steven

PS Thanks for responding.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
And the problem is ? Looks like to me that a table tag should easily allow
this layout ?

Patrice

--

"Nevets Steprock" <.@.> a écrit dans le message de
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output

a
correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated
in

a
vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box
has
both the actual number and a colour scheme that represents the strength
of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google

for
"triangular matrix", code, .net, visual basic, etc... and can't find out

how
other programmers are doing it.

Thanks for ANY help you can give.
Steven


Nov 19 '05 #8
I would just output server side as many rows as needed. I was not talking
about a table (or array) structure. I was talking about the table HTML tag.

You could render this tag using either a vector or an array. Because of the
structure of this triangular matrix, it should be easy to find out how many
columns you need in the table. You'll then render each row picking an
additional cell each time (1, 2, 3 etc...) and filling the rest of the row
with empty cells...

It would be trivial using an rray, it should be still easy using a vector...

Patrice
--

"Nevets Steprock" <.@.> a écrit dans le message de
news:tItre.6129 1$9A2.58275@edt nps89...
I suspect both Bruce and Kevin are suggesting the same. I've only started
programming for the web as of 3 months ago (~20 years of standalone
applications - nothing serious, just mucking around) and have been having a great time with the new environment.

Since my correlation matrix will be anywhere from 2 to 16 variables, can I
use jscript to do it dynamically or would you suggest I prebuild the table
structure for 16 variables and then resize the rows as necessary?

Steven

PS Thanks for responding.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
And the problem is ? Looks like to me that a table tag should easily allow this layout ?

Patrice

--

"Nevets Steprock" <.@.> a écrit dans le message de
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to output
a
correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated
in

a
vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box
has
both the actual number and a colour scheme that represents the strength
of
correlation.

I would be open to paying a fee for the help (please note that I'm not
a corporation with deep pockets). I've done exhausting searches on google

for
"triangular matrix", code, .net, visual basic, etc... and can't find

out how
other programmers are doing it.

Thanks for ANY help you can give.
Steven



Nov 19 '05 #9
Hi Steven,

You're storing the data in an array, and I presume that you have a method
for extracting the various "levels" from the array. So, in the process of
extracting the levels, and I can only guess from what I've seen, the last
row contains the number of elements as the number of columns in the table.
The number of "levels" derived from the array would give you the number of
rows in the table. Once you know that, you can dynamically build an
HtmlTable Control with the number of rows and columns, and add the data into
the table as you build it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Nevets Steprock" <.@.> wrote in message
news:tItre.6129 1$9A2.58275@edt nps89...
I suspect both Bruce and Kevin are suggesting the same. I've only started
programming for the web as of 3 months ago (~20 years of standalone
applications - nothing serious, just mucking around) and have been having a
great time with the new environment.

Since my correlation matrix will be anywhere from 2 to 16 variables, can I
use jscript to do it dynamically or would you suggest I prebuild the table
structure for 16 variables and then resize the rows as necessary?

Steven

PS Thanks for responding.

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
And the problem is ? Looks like to me that a table tag should easily
allow
this layout ?

Patrice

--

"Nevets Steprock" <.@.> a écrit dans le message de
news:Soire.6254 7$tt5.38490@edt nps90...
I'm writing a web program where one of the sections is supposed to
output

a
correlation matrix. The typical correlation matrix looks like this:

.23
.34 .54
.76 .44 .28
.02 .77 .80 .99

I've written code to calculate the correlation data and it is populated
in

a
vector like this:

corrcoeff(.23, .34, .54, .76, .44, .28, .02, .77, .80, .99)

I would like to present the data in a triangular matrix where each box
has
both the actual number and a colour scheme that represents the strength
of
correlation.

I would be open to paying a fee for the help (please note that I'm not a
corporation with deep pockets). I've done exhausting searches on google

for
"triangular matrix", code, .net, visual basic, etc... and can't find out

how
other programmers are doing it.

Thanks for ANY help you can give.
Steven



Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
3141
by: bluekite2000 | last post by:
I want Matrix A(B) to create shallow copy of B but A=B to create deep copy of B. Is that bad design? Why and why not?
12
1891
by: Ferdi Smit | last post by:
I wanted to provide a template class with an optional data member. The most natural way to do this was to implement a member for a given template parameter, and in the case of 'void', then not. I came up with the following, and I'm wondering if the design is any good. Perhaps I'm overcomplicating things? Or is it ok? // First we use a helper class that we can specialize on 'void' template <typename T> struct DataContainer {
4
18901
by: David | last post by:
Anyone, Does anyonee now how to use the following outline to fill a matrix with zeros and call on the first function in the following program? void fill_with_zeros(int *mat){ mat=mat1=mat2=mat3; return 0; }
6
4272
by: suresh4ind | last post by:
Hi i need to copy the upper triangular elements of matrix A to an array B,how to perform this ,can u send me the accessing formula
6
1731
by: Nimion | last post by:
For work I've been tasked with creating some verification programs. So I thought best way to do this is to take their excel sheet and compare the data... I've been able to open the excel sheet and place it into a DataGridView, but now I'm stumped on how I actually use the data Im seeing... I.E - The sheet has 2 columns (min) and (max) with about 20 rows of values... I want to be able to compare the data a user inputs against these two...
2
1738
by: Marco Biagioni | last post by:
After i've tried to update a vb 6.0 project to vb.net, using visual studio utility,i can't read correctly data bytes from a .bmp file to insert them in a matrix to operate on. Using vb 6.0 the code was based on Get function: GET #1, PIXELSTART, PHOTO.MATRIX where PHOTO is a structure data type, with a member MATRIX previously defined in this way:
2
2803
by: Marco Biagioni | last post by:
After i've tried to update a vb 6.0 project to vb.net, using visual studio utility,i can't read correctly data bytes from a .bmp file to insert them in a matrix to operate on. Using vb 6.0 the code was based on Get function: GET #1, PIXELSTART, PHOTO.MATRIX where PHOTO is a structure data type, with a member MATRIX previously defined in this way:
2
1896
by: Sirrev | last post by:
MS Access 97 WinXP I've created a report bar graph and each bar represents the data from a different BU(Business Unit). The report bar graph works as it should except for the following : depending on the reporting dates selected there are some BU where there is no data, so that BU is skipped on the graph. How can I get the BU without data to appear on the chart (basicaly I need the BU unit to appear on the X axis with a value of 0) ? Here...
13
3086
by: mo/-/sin | last post by:
hi........... i m mohsin plz provide me the program which represents triangular matrix in c language.........
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.