Basic graphics algorithms in computer graphics
Computer graphics -- basic graphics algorithms
Representation of points in raster graphics
The screen coordinate system is in the upper left corner
Address = (xmax xmin) [number of pixels per line] * (Y-Ymin) [number of lines] + (X-Xmin) [position in line] + base address
Linear scan conversion algorithm
Assumptions: uniform grid between pi ...
Posted by montana111 on Thu, 04 Nov 2021 08:44:00 -0700
R language principal component regression (PCR) and multiple linear regression feature dimensionality reduction analysis of vehicle fuel consumption, design and performance data and spectral data
Original link: http://tecdat.cn/?p=24152What is PCR? (PCR = PCA + MLR)• PCR is a regression technique that processes many x variables • given Y and X data: • PCA on X matrix – define a new variable: principal component (score) • in multivariate linearity_ Return_ (_MLR_) Some of these new variables are used ...
Posted by Dujo on Thu, 04 Nov 2021 08:15:49 -0700
2021-11-04 swipe questions and punch in every day
2021-11-04 swipe questions and punch in every day
Force buckle - binary tree
102. Sequence traversal of binary tree and Sword finger Offer 32 - II. Print binary tree II from top to bottom
To give you a binary tree, please return the node values obtained by traversing in sequence. (that is, access all nodes from left to right layer by layer). ...
Posted by juschillinnow on Wed, 03 Nov 2021 23:38:50 -0700
Find the k-th largest number of two ordered arrays
Title: give two one-dimensional int arrays a and B. where: A is an ordered array with length m and elements in good order from small to large. B is an ordered array with length n and elements arranged from small to large. We hope to find the maximum k numbers from the A and B arrays. It is required to use as few comparisons as possible.
Soluti ...
Posted by ossi69 on Wed, 03 Nov 2021 22:27:41 -0700
LeetCode daily question -- receiving rainwater (November 3, 2021)
The topics are as follows: Give you a matrix of m x n, where the values are non negative integers, representing the height of each cell in the two-dimensional height map. Please calculate the maximum volume of rainwater that can be received by the shape in the map. Input: hightmap = [[1,4,3,1,3,2], [3,2,1,3,2,4], [2,3,3,2,3,1]] Output: 4 Expla ...
Posted by bobcooper on Wed, 03 Nov 2021 22:15:37 -0700
R language integration model: lifting tree boosting, random forest, constrained least squares weighted average model fusion analysis of time series data
Original link: http://tecdat.cn/?p=24148Especially in economics / econometrics, modelers do not believe that their models can reflect reality. For example, the yield curve does not follow the three factor Nelson Siegel model, the relationship between stocks and their related factors is not linear, and the volatility does not follow the Garch(1, ...
Posted by kornlord283 on Wed, 03 Nov 2021 22:09:58 -0700
A preliminary understanding of greedy thought
catalogue
1. Distribution issues
2. Interval problem
3. The best time to buy stocks
4. Summary
1. Distribution issues
Title Description:
This kind of problem probably means that there are a group of children and a pile of biscuits. Each child is very hungry. If the size of the biscuit is greater than or equal to the child's hunger, ...
Posted by DfyAnt on Wed, 03 Nov 2021 20:54:24 -0700
Weighted union search set
A basic union search set
There are only two operations for the basic union query set, one is to find ancestors, and the other is to merge
int find(int x)
{
if(x==pre[x]) return x;
else return pre[x]=find(pre[x]);
}
void join(int x,int y)
{
pre[find(x)]=find(y);
}
Two weighted union search set
for weighted concurrent sear ...
Posted by Stevis2002 on Wed, 03 Nov 2021 12:48:17 -0700
Binary search basic topic - binary template
Binary search basis
1. Preface
In the past, I always felt that I had to go through all the concepts before I could start to brush the questions. I didn't know that practice was the shortcut to master knowledge, rather than forgetting to recite it. To learn knowledge, we need to settle down and go step by step, otherwise we will be punished fo ...
Posted by SnaD on Wed, 03 Nov 2021 12:04:20 -0700
[programming art] analysis of darknet parse_network_cfg interface
Welcome to my official account, reply to 001 Google programming specification. O_o >_< o_O O_o ~_~ o_O this paper analyzes and introduces darknet parse_network_cfg interface, which is a hard core, is mainly used to load the model structure and implement the operator.1. darknet data loading routine Previous ...
Posted by l0ve2hat3 on Wed, 03 Nov 2021 00:08:42 -0700