1580 Words7 Pages

4. Description of the function files in the software package giant_test

4.1. calltest.m:

The program calltest.m is the main file that runs the simulations.

This program allows users to input parameters via two GUIs.

The input parameter N_val is a vector. The elements of N_val are the values for sizes of the networks. The program has set the maximum network size to 13,000. If user inputs number greater than 13,000 for the network size, then program displays following error messages in the command window:

`Extremely large network size. '

`Use numbers less than 13000 for network size '.

The minimum and the maximum values of the proportion of nodes of type 1 are given by input parameters q1min and q1max respectively. The program*…show more content…*

To compute rho, the program GSC threshold.m denes two non-linear functions root2d and root2r as in Equation (15) and (16) of [1]. Each of these functions represents a system of non-linear equations in two variables. The program numerically solves these two by two systems of non-linear equations by using the inbuilt MatLab function f-solve. Since the probabilities, PNi are numerical solution computed by MatLab these values can be very very small numbers. To avoid these artifacts, the program replaces values of rho less than l_t by*…show more content…*

For each distinct pair of the scaled mean vector c and the network size N, the program produces an adjacency matrix of a loop-free digraph (with all diagonal entries 0). To construct the matrix A, the program constructs four matrices A_ij of size Ni by Nj. The elements of these matrices A_ij are either 0 or 1. To assign a value to the element a_ij in the matrix A_ij, the program randomly generates a number from the standard uniform distribution on the open interval (0; 1) and if the number is less than Cij Nj then the element a_ij of the matrix A_ij will take value 1, otherwise the element will be 0. For matrices A_ij with i = j, the diagonal elements are made zero by replacing diagonal elements by zero. First, two matrices with the same k value are horizontally concatenated and then the matrices obtained after the horizontal concatenations are vertically concatenated to produce N1 - N2 adjacency matrix A. The numbers N1 and N2 represent the numbers of nodes of type 1 and type 2 respectively. The value of N1 is obtained by rounding the product of the network size N and the node proportion q1 of type 1 to the nearest integer. Then the remaining number of nodes N-N1 is the number N2 of nodes of

4.1. calltest.m:

The program calltest.m is the main file that runs the simulations.

This program allows users to input parameters via two GUIs.

The input parameter N_val is a vector. The elements of N_val are the values for sizes of the networks. The program has set the maximum network size to 13,000. If user inputs number greater than 13,000 for the network size, then program displays following error messages in the command window:

`Extremely large network size. '

`Use numbers less than 13000 for network size '.

The minimum and the maximum values of the proportion of nodes of type 1 are given by input parameters q1min and q1max respectively. The program

To compute rho, the program GSC threshold.m denes two non-linear functions root2d and root2r as in Equation (15) and (16) of [1]. Each of these functions represents a system of non-linear equations in two variables. The program numerically solves these two by two systems of non-linear equations by using the inbuilt MatLab function f-solve. Since the probabilities, PNi are numerical solution computed by MatLab these values can be very very small numbers. To avoid these artifacts, the program replaces values of rho less than l_t by

For each distinct pair of the scaled mean vector c and the network size N, the program produces an adjacency matrix of a loop-free digraph (with all diagonal entries 0). To construct the matrix A, the program constructs four matrices A_ij of size Ni by Nj. The elements of these matrices A_ij are either 0 or 1. To assign a value to the element a_ij in the matrix A_ij, the program randomly generates a number from the standard uniform distribution on the open interval (0; 1) and if the number is less than Cij Nj then the element a_ij of the matrix A_ij will take value 1, otherwise the element will be 0. For matrices A_ij with i = j, the diagonal elements are made zero by replacing diagonal elements by zero. First, two matrices with the same k value are horizontally concatenated and then the matrices obtained after the horizontal concatenations are vertically concatenated to produce N1 - N2 adjacency matrix A. The numbers N1 and N2 represent the numbers of nodes of type 1 and type 2 respectively. The value of N1 is obtained by rounding the product of the network size N and the node proportion q1 of type 1 to the nearest integer. Then the remaining number of nodes N-N1 is the number N2 of nodes of

Related

## Nt1310 Unit 8.1 Research Paper

568 Words | 3 PagesThere are different kinds of operating systems in the technology world. Microsoft makes Windows which is the most widely used operating system in the world. 90% of the world uses it. The most used after Microsoft is Apple which makes OSX. There is also Ubuntu and Unix. They do not share the same protocols and the same communications software but they are manageable to be able to communicate between each other.

## NT1330 Unit 1 Assignment 1

308 Words | 2 PagesWe can describe IoT as connect things like smartphones, personal computer and any other electronic devices and connected together as a new way in communicating between things and people and between things themselves [1].

## Gke Task 1

1425 Words | 6 PagesIt would effect everything on the planet, plants would be less able to produce the suns energy and living organisms would be in big trouble. A short term effect would be decreasing plant populations and a long term effect would be a decreasing population of every organism on the planet.

## Nt1310 Unit 1 Assignment

854 Words | 4 PagesTwo vitamins that I do not meet the guidelines for daily consumption from the 2010 Dietary Guidelines for Americans are vitamins A and D, which are both fat-soluble vitamins. The primary function of vitamin A is maintaining the function of the cells that line the lungs, stomach, urinary tract and bladder, intestines, vagina, vision, skin and immune function. Having a low intake of vitamin A could increase my risk of vision problems such as age related macular degeneration due an inadequate amount of carotenoids such as lutein, zeaxanthin, and beta-carotenes. The recommended amount for me according the Dietary Reference Intake (DRI) for Vitamin A-RAE is 700 mcg and for my weekly average I consumed 279.2. If this vitamin is taken in excess it can have harmful effects such as liver toxicity and birth defects. Food sources that are rich with this vitamin are beef liver,

## Nt1310 Unit 1 Data Sheet Analysis

565 Words | 3 PagesDstat: Dstat is a server statistic tool used to troubleshoot server issues in real time.

## Nt1330 Unit 3 Task 1

964 Words | 4 PagesI have been asked to use Ubuntu? One comparison between windows and linux is that Linux is a lot freer than windows because windows are restricted. Another comparison is windows are a lot safer because if something breaks you get paid support whereas on Linux you do not have any support. My experience with Linux is not much as I am entirely a windows user.

## Nt1310 Unit 2 Assignment 1

693 Words | 3 PagesTask/Activity: Students in both classes started off the class by taking their weekly spelling test. Following this, both classes examined prose-constructed responses completed by fellow students (although responses were kept anonymous). Students would then work in groups to grade the response according to PARCC standards. The class would then come back together as a whole, with each group discussing the grade they gave the response and why. Mrs. Lanza would then reveal the grade she gave the response, hoping that each group fell within one point value and had relatively the same constructive criticism to give. Following this, students worked on independent writing assignments on MyAccess.

## Nt1330 Unit 1 Assignment 1

632 Words | 3 Pages#include #include #include #include #include #define _MAX 100 #define _SIZE 26 int id=0; struct node { char data; unsigned int freq; struct node *next; }*input,*input1; struct hfnode { char info; unsigned int prob; struct hfnode *l, *r; }; struct min_tree { unsigned int length; unsigned int hfm_cp; struct hfnode **nodes; }; void min_tree_construct(struct min_tree* min_tree, int node_id) { int minimum = node_id,l,r; struct hfnode* t; l = 2 * node_id + 1; r = 2 * node_id + 2; if (l < min_tree->length && min_tree->nodes[l]->prob < min_tree->nodes[minimum]->prob) minimum = l; if (r < min_tree->length && min_tree->nodes[r]->prob < min_tree->nodes[minimum]->prob) minimum = r; if (minimum != node_id) { t = min_tree->nodes[minimum]; min_tree->nodes[minimum]=min_tree->nodes[node_id]; min_tree->nodes[node_id]=t; min_tree_construct(min_tree, minimum); } } struct hfnode* min_take(struct min_tree* min_tree) { struct hfnode* tmp = min_tree->nodes[0]; min_tree->nodes[0] = min_tree->nodes[min_tree->length - 1]; --min_tree->length; min_tree_construct(min_tree, 0); return tmp; } void insertmin_tree(struct min_tree* min_tree, struct hfnode* hfnode) { ++min_tree->length; int a = min_tree->length - 1; while (a && hfnode->prob < min_tree->nodes[(a - 1)/2]->prob) { min_tree->nodes[a] = min_tree->nodes[(a - (struct hfnode**)malloc(min_tree->hfm_cp * sizeof(struct hfnode*)); int i; struct node *temp2; temp2 = input; i=0; while(temp2!=NULL) { info[i]=temp2->data; freq[i]=temp2->freq; temp2=temp2->next; i++; } for(i=0;inodes[i] = new_node(info[i],freq[i]); min_tree->length = length; int sz,count; sz = min_tree->length - 1; for (count = (sz - 1) / 2; count >= 0; --count) min_tree_construct(min_tree, count); while (!(min_tree->length == 1)) { l1 = min_take(min_tree); r1 = min_take(min_tree); tmp = new_node(' ', l1->prob + r1->prob); tmp->l = l1; tmp->r = r1; insertmin_tree(min_tree, tmp); } rt = min_take(min_tree); codes_hfm(rt, arr, t); } void display() { struct node *traverse; traverse=input; if(traverse==NULL) { printf(" "); } else { while(traverse!=NULL) { printf(" %c: %d\t ",traverse->data,traverse->freq); traverse=traverse->next; } } } void insert(char ch,int freq) { struct node* temp,*temp_2; temp=input; temp_2=input; input1=(struct node*)malloc(sizeof (struct

## NT1330 Unit 1 Assignment

437 Words | 2 PagesBack in 2013, our organization decided to purchase and implement the latest software that was available which was promised to better serve our types of industry. It was one of the biggest financial investment that our company made anticipating reasonable production and performance returns within a year of implementation the new system. It has been nearly three years that we have not yet utilized 50 % of the performances that was promised. In fact this upgrading took us back by requiring us to do some manual work because we can 't do what we were able do with our old system.

## Nt1310 Unit 3 Assignment

583 Words | 3 PagesI have recently been a Mod on a server, but that server closed down. I was a Co-Owner, Admin, and Mod (different to the recent server) on all different servers.

## Nt1310 Unit 1 Assignment

650 Words | 3 PagesMy identity is wrapped up in my love of music because I have been surrounded by it since I was little. When I was a toddler, I would sit for long periods of time and watch videos of kids singing songs. As I grew older I participated in my church's children's choir and even held solos in my elementary school chorus. When I reached middle school I joined my school's middle school chorus in 7th grade as an alto and 8th grade as a soprano. The transition between 8th and 9th grade was important for me because I took up voice lesson in 8th grade and went to my first music camp the summer before 9th grade.

## Nt1330 Unit 9 Final Project

657 Words | 3 PagesAfter compiling all of the ingredients into a numbered list, I find out that every product “purchased” at Harris Teeter would account for $116.19 over the budget. The few adjustments I made to my shopping list beforehand did not help reduce the total to a reasonable price either. While I was going through all of the products at home, I crossed out a few unnecessary items that were optional or switched to products with a lower price just to see if I could be within the budget. Eventually, after I was done “shopping” and tallying up all of the prices, the cost still exceeded the price that I calculated in my head. As I went down the aisles searching for foods on my grocery list, I kept a close eye out for products that had nutritious labels such as organic, fresh, or low in sodium so that the college student I chose could receive the right amount of nutrients needed for a healthy lifestyle. As a result of that, I realized that most of the nutritious products were set at

## Nt1310 Unit 3 Game Analysis

524 Words | 3 PagesThe computer I have chosen for Adam is a custom gaming PC called The Rebel T3. The computer I have chosen for Adam is from NCIX (ncix.com) costing $4,276.86 CAD, including tax and shipping. The computer may seem a lot, however, the cost for the specifications is justifiable for what Adam requires. Since Adam enjoys running multiple operating systems, the computer will come with Windows 10 Home and will provide different operating systems such as Linux and Mac OS X. The CPU is an Intel core i7-6700K with quad core at 4.2Ghz. The processor is faster, more power efficient, and better equipped for modern computing than any others on the market for a student. Along with the Corsair Vengeance 32GB DDR4 for its RAM, it will be able to run several programs

## Nt1310 Unit 3 Assignment Analysis

630 Words | 3 PagesGANGMEMBERCORIA (Coria), I will most likely be playing on the account "Cohy" though, do to my name being abit much.

## Nt1310 Unit 1 Programming Assignment

512 Words | 3 PagesGenerally this week programming assignment was not easy for me to do, there have been a lot of up and down and I find it a little challenging to finish my programming assignment. But unfortunately I was not able to submit my work because by the time I finished, it was too late for me to submit, but I learnt a lot on return values which only can you pass a parameter value into a function, a function can also produce a value. The built-in functions such as abs, pow, int, max, and range, have produced results. Calling each of these functions generates a value, which we usually assign to a variable or use as part of an expression. You have already seen this in some previous functions that you have used. For example, len takes a list or string as

### Nt1310 Unit 8.1 Research Paper

568 Words | 3 Pages### NT1330 Unit 1 Assignment 1

308 Words | 2 Pages### Gke Task 1

1425 Words | 6 Pages### Nt1310 Unit 1 Assignment

854 Words | 4 Pages### Nt1310 Unit 1 Data Sheet Analysis

565 Words | 3 Pages### Nt1330 Unit 3 Task 1

964 Words | 4 Pages### Nt1310 Unit 2 Assignment 1

693 Words | 3 Pages### Nt1330 Unit 1 Assignment 1

632 Words | 3 Pages### NT1330 Unit 1 Assignment

437 Words | 2 Pages### Nt1310 Unit 3 Assignment

583 Words | 3 Pages### Nt1310 Unit 1 Assignment

650 Words | 3 Pages### Nt1330 Unit 9 Final Project

657 Words | 3 Pages### Nt1310 Unit 3 Game Analysis

524 Words | 3 Pages### Nt1310 Unit 3 Assignment Analysis

630 Words | 3 Pages### Nt1310 Unit 1 Programming Assignment

512 Words | 3 Pages