The least square method of fitting linear quadratic function curve javascript (p5.js)
Least square fitting
Using tools
p5.js is an open source designer tool, specializing in drawing
Here are the documents, toolkit and official website (only p5.min.js is used in this article)
Link: https://pan.baidu.com/s/1i5D0OpZ Password: e04v https://p5js.org/
Fit line
Final effect
mathematical formula
∑ni= ...
Posted by Red Blaze on Thu, 30 Apr 2020 13:26:14 -0700
Super Android - BaseAdapter+ListView
0x00 Preface
Before that, I learned ListView and three adapters, arrayadapter, simpleadapter and simplecusoradapter in Android
This time we mainly focus on BaseAdapter to learn and practice.
0x01 what is BaseAdapter
In short, it is a kind of universal adapter, which we usually inherit.
We will implement it after ...
Posted by emopoops on Thu, 02 Apr 2020 00:18:36 -0700
c + + type conversion
concept
The meaning of type conversion is to change the representation of a variable by changing its type to another type. In order to type one simple object into another you will use the type conversion operator.
C-style cast is very simple, no matter what type of cast is: TYPE b = (TYPE)a
C + + style type conversion provid ...
Posted by 3.grosz on Tue, 31 Mar 2020 15:10:41 -0700
python tkinter game development
Using python to make simple game cases
Editing environment: Python 3.7
Compiler: vscode
Case Directory:
1. Sequence application - word guessing game
2. Object oriented design application licensing game
3. Graphic interface design - guessing digital games
4.Tkinter graphic drawing - Graphic licensing program
5.Python image processing -- characte ...
Posted by raven_web on Fri, 13 Mar 2020 04:15:39 -0700
About the development of python games
Word guessing game
Licensing game
Figure guessing game
Picture licensing game
Character mosaic
1, Word guessing game
Running screenshot:
Code and steps:
1. Import relevant modules in the word guessing game program.
import random
2. Create all word sequence tuples to be guessed WORDS.
words=("python","jumble","easy","difficult","answer","cont ...
Posted by flappy_warbucks on Mon, 09 Mar 2020 02:25:11 -0700
[Uva1637][DFS] [memory] card game Double Patience
Write code must pay attention to!!!!!!
I wrote 1 + 1 for i+1 and changed it all night
Title:
Double Patience is a single player game that uses a standard 36 card deck. After shuffling, the cards are placed on a table, folded into 9 stacks, 4 for each stack, face up.
When the card is down, the player turns. Each time, he can remove the top cards ...
Posted by crouse on Thu, 05 Mar 2020 20:56:46 -0800
Data structure string (explain KMP algorithm in detail)
1. Definition of string:
A finite sequence of zero or more characters, also known as a string
Empty string without characters
A string with only spaces is called a space string
2. Abstract data type of string:
ADT String ( string)
Data
//The element of a string consists of only one character, and the ...
Posted by seavolvox on Sat, 22 Feb 2020 04:56:51 -0800
The key function selector of jQuery
Selector is the core of jquery
The object returned by jquery selector is jquery object, which does not return undefined or null, so it is unnecessary to judge
Basic selector:
ID selector $("" Id ")
element selector (label selector) $("label") such as $("div")
Get the specific label, and use the way of array ...
Posted by jesse26 on Sun, 16 Feb 2020 02:54:35 -0800
HTML basic notes list and fonts
3 lists
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
/*
Remove bullet
* */
/*ul{
list-style: none;
}*/
</style>
</head>
<body>
<!--
The lis ...
Posted by martor on Wed, 12 Feb 2020 10:14:33 -0800
Detectron 2 (target detection framework) - 07: source details - model building - retinaet as an example
The following links are personal opinions on detectron 2 (target detection framework). If there is any error, please point out it. I will correct it as soon as possible. Interested friends can add wechat: a944284742 to discuss technology with each other. If it helps you anything, remember to like it! Be ...
Posted by HA7E on Tue, 28 Jan 2020 05:20:32 -0800