码迷,mamicode.com
首页 >  
搜索关键字:hdoj matrix    ( 6780个结果
R语言中的Theil-Sen回归分析
原文链接:http://tecdat.cn/?p=10080 Theil-Sen估计器是一种在社会科学中不常用 的简单线性回归估计器 。三个步骤: 在数据中所有点之间绘制一条线 计算每条线的斜率 中位数斜率是 回归斜率 用这种方法计算斜率非常可靠。当误差呈正态分布且没有异常值时,斜率与OLS非常相似 ...
分类:编程语言   时间:2020-01-13 18:18:00    阅读次数:216
【leetcode】1314. Matrix Block Sum
题目如下: Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <= ...
分类:其他好文   时间:2020-01-12 18:28:51    阅读次数:68
Egret之渐变填充
this.bgShape=newegret.Shape();this.bgShape.width=w;this.bgShape.height=h;let$max:egret.Matrix=this.bgShape.matrix;$max.a=$max.d=0;$max.c=$max.b=1;this.bgShape.graphics.beginGradientFill(egret.Gradient
分类:其他好文   时间:2020-01-11 22:32:32    阅读次数:372
Python 矩阵相关
Python 中矩阵运算主要使用numpy库。NumPy的主要对象是同种元素的多维数组。这是一个所有的元素都是一种类型、通过一个正整数索引的元素表格(通常是元素是数字)。因此对于随机查找来说,比python自带的list快很多。 在numpy里面通常使用两个变量:array和matrix。其实pyt ...
分类:编程语言   时间:2020-01-11 22:32:18    阅读次数:99
NMF: non-negative matrix factorization.
1. 矩阵分解可以用来解决什么方法, 以及how? 利用矩阵分解来解决实际问题的分析方法很多,如PCA(主成分分析)、ICA(独立成分分析)、SVD(奇异值分解)、VQ(矢量量化)等。在所有这些方法中,原始的大矩阵V被近似分解为低秩的V=WH形式。这些方法的共同特点是,因子W和H中的元素可为正或负, ...
分类:其他好文   时间:2020-01-10 22:12:43    阅读次数:95
力扣240——搜索二维矩阵
这道题主要是利用搜索二维矩阵本身的特性,找到其中的规律,就可以解决了。 <! more 原题 编写一个高效的算法来搜索?m?x?n?矩阵 matrix 中的一个目标值 target。该矩阵具有以下特性: 每行的元素从左到右升序排列。 每列的元素从上到下升序排列。 示例: 现有矩阵 matrix 如下 ...
分类:其他好文   时间:2020-01-10 18:43:16    阅读次数:85
Matrix God 随机化构造矩阵降维
https://codeforces.com/gym/101341/problem/I 题意: 给定三个矩阵ABC,问A*b是否等于c 代码: 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 5 long long ...
分类:其他好文   时间:2020-01-10 10:24:34    阅读次数:70
smo
还在更新中import numpy as npimport random# build auxiliary functionclass optstruct: def __init__(self, datax, datay, C, toler): self.x = datax self.label = ...
分类:其他好文   时间:2020-01-08 01:03:18    阅读次数:183
【板子】矩阵快速幂
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int mod=123456789; struct matrix{ ll a[11][11]; //begin with 1 int r,c; matri ...
分类:其他好文   时间:2020-01-06 00:30:10    阅读次数:90
等比数列二分求和取模
题意:Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. n (n ≤ 30), k (k ≤ 109) and m (m < 104) 输出结果矩阵 解法: 若 n是偶数 S ...
分类:其他好文   时间:2020-01-05 10:09:31    阅读次数:80
6780条   上一页 1 ... 36 37 38 39 40 ... 678 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!