カラー 設定

Web safe colorを16進数のRGB値で表現したマトリックス
#000000#000033#000066#000099#0000cc#0000ff
#003300#003333#003366#003399#0033cc#0033ff
#006600#006633#006666#006699#0066cc#0066ff
#009900#009933#009966#009999#0099cc#0099ff
#00cc00#00cc33#00cc66#00cc99#00cccc#00ccff
#00ff00#00ff33#00ff66#00ff99#00ffcc#00ffff
#330000#330033#330066#330099#3300cc#3300ff
#333300#333333#333366#333399#3333cc#3333ff
#336600#336633#336666#336699#3366cc#3366ff
#339900#339933#339966#339999#3399cc#3399ff
#33cc00#33cc33#33cc66#33cc99#33cccc#33ccff
#33ff00#33ff33#33ff66#33ff99#33ffcc#33ffff
#660000#660033#660066#660099#6600cc#6600ff
#663300#663333#663366#663399#6633cc#6633ff
#666600#666633#666666#666699#6666cc#6666ff
#669900#669933#669966#669999#6699cc#6699ff
#66cc00#66cc33#66cc66#66cc99#66cccc#66ccff
#66ff00#66ff33#66ff66#66ff99#66ffcc#66ffff
#990000#990033#990066#990099#9900cc#9900ff
#993300#993333#993366#993399#9933cc#9933ff
#996600#996633#996666#996699#9966cc#9966ff
#999900#999933#999966#999999#9999cc#9999ff
#99cc00#99cc33#99cc66#99cc99#99cccc#99ccff
#99ff00#99ff33#99ff66#99ff99#99ffcc#99ffff
#cc0000#cc0033#cc0066#cc0099#cc00cc#cc00ff
#cc3300#cc3333#cc3366#cc3399#cc33cc#cc33ff
#cc6600#cc6633#cc6666#cc6699#cc66cc#cc66ff
#cc9900#cc9933#cc9966#cc9999#cc99cc#cc99ff
#cccc00#cccc33#cccc66#cccc99#cccccc#ccccff
#ccff00#ccff33#ccff66#ccff99#ccffcc#ccffff
#ff0000#ff0033#ff0066#ff0099#ff00cc#ff00ff
#ff3300#ff3333#ff3366#ff3399#ff33cc#ff33ff
#ff6600#ff6633#ff6666#ff6699#ff66cc#ff66ff
#ff9900#ff9933#ff9966#ff9999#ff99cc#ff99ff
#ffcc00#ffcc33#ffcc66#ffcc99#ffcccc#ffccff
#ffff00#ffff33#ffff66#ffff99#ffffcc#ffffff
 

<table cellpadding="2" style="background:#fff; text-align:center;">

<caption>Web safe colorを16進数のRGB値で表現したマトリックス</caption>

<tr style="color:#fff;">

<td style="background-color:#000000;">#000000</td>

<td style="background-color:#000033;">#000033</td>

<td style="background-color:#000066;">#000066</td>

<td style="background-color:#000099;">#000099</td>

<td style="background-color:#0000cc;">#0000cc</td>

<td style="background-color:#0000ff;">#0000ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#003300;">#003300</td>

<td style="background-color:#003333;">#003333</td>

<td style="background-color:#003366;">#003366</td>

<td style="background-color:#003399;">#003399</td>

<td style="background-color:#0033cc;">#0033cc</td>

<td style="background-color:#0033ff;">#0033ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#006600;">#006600</td>

<td style="background-color:#006633;">#006633</td>

<td style="background-color:#006666;">#006666</td>

<td style="background-color:#006699;">#006699</td>

<td style="background-color:#0066cc;">#0066cc</td>

<td style="background-color:#0066ff;">#0066ff</td>

</tr>

<tr>

<td style="background-color:#009900;">#009900</td>

<td style="background-color:#009933;">#009933</td>

<td style="background-color:#009966;">#009966</td>

<td style="background-color:#009999;">#009999</td>

<td style="background-color:#0099cc;">#0099cc</td>

<td style="background-color:#0099ff;">#0099ff</td>

</tr>

<tr>

<td style="background-color:#00cc00;">#00cc00</td>

<td style="background-color:#00cc33;">#00cc33</td>

<td style="background-color:#00cc66;">#00cc66</td>

<td style="background-color:#00cc99;">#00cc99</td>

<td style="background-color:#00cccc;">#00cccc</td>

<td style="background-color:#00ccff;">#00ccff</td>

</tr>

<tr>

<td style="background-color:#00ff00;">#00ff00</td>

<td style="background-color:#00ff33;">#00ff33</td>

<td style="background-color:#00ff66;">#00ff66</td>

<td style="background-color:#00ff99;">#00ff99</td>

<td style="background-color:#00ffcc;">#00ffcc</td>

<td style="background-color:#00ffff;">#00ffff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#330000;">#330000</td>

<td style="background-color:#330033;">#330033</td>

<td style="background-color:#330066;">#330066</td>

<td style="background-color:#330099;">#330099</td>

<td style="background-color:#3300cc;">#3300cc</td>

<td style="background-color:#3300ff;">#3300ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#333300;">#333300</td>

<td style="background-color:#333333;">#333333</td>

<td style="background-color:#333366;">#333366</td>

<td style="background-color:#333399;">#333399</td>

<td style="background-color:#3333cc;">#3333cc</td>

<td style="background-color:#3333ff;">#3333ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#336600;">#336600</td>

<td style="background-color:#336633;">#336633</td>

<td style="background-color:#336666;">#336666</td>

<td style="background-color:#336699;">#336699</td>

<td style="background-color:#3366cc;">#3366cc</td>

<td style="background-color:#3366ff;">#3366ff</td>

</tr>

<tr>

<td style="background-color:#339900;">#339900</td>

<td style="background-color:#339933;">#339933</td>

<td style="background-color:#339966;">#339966</td>

<td style="background-color:#339999;">#339999</td>

<td style="background-color:#3399cc;">#3399cc</td>

<td style="background-color:#3399ff;">#3399ff</td>

</tr>

<tr>

<td style="background-color:#33cc00;">#33cc00</td>

<td style="background-color:#33cc33;">#33cc33</td>

<td style="background-color:#33cc66;">#33cc66</td>

<td style="background-color:#33cc99;">#33cc99</td>

<td style="background-color:#33cccc;">#33cccc</td>

<td style="background-color:#33ccff;">#33ccff</td>

</tr>

<tr>

<td style="background-color:#33ff00;">#33ff00</td>

<td style="background-color:#33ff33;">#33ff33</td>

<td style="background-color:#33ff66;">#33ff66</td>

<td style="background-color:#33ff99;">#33ff99</td>

<td style="background-color:#33ffcc;">#33ffcc</td>

<td style="background-color:#33ffff;">#33ffff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#660000;">#660000</td>

<td style="background-color:#660033;">#660033</td>

<td style="background-color:#660066;">#660066</td>

<td style="background-color:#660099;">#660099</td>

<td style="background-color:#6600cc;">#6600cc</td>

<td style="background-color:#6600ff;">#6600ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#663300;">#663300</td>

<td style="background-color:#663333;">#663333</td>

<td style="background-color:#663366;">#663366</td>

<td style="background-color:#663399;">#663399</td>

<td style="background-color:#6633cc;">#6633cc</td>

<td style="background-color:#6633ff;">#6633ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#666600;">#666600</td>

<td style="background-color:#666633;">#666633</td>

<td style="background-color:#666666;">#666666</td>

<td style="background-color:#666699;">#666699</td>

<td style="background-color:#6666cc;">#6666cc</td>

<td style="background-color:#6666ff;">#6666ff</td>

</tr>

<tr>

<td style="background-color:#669900;">#669900</td>

<td style="background-color:#669933;">#669933</td>

<td style="background-color:#669966;">#669966</td>

<td style="background-color:#669999;">#669999</td>

<td style="background-color:#6699cc;">#6699cc</td>

<td style="background-color:#6699ff;">#6699ff</td>

</tr>

<tr>

<td style="background-color:#66cc00;">#66cc00</td>

<td style="background-color:#66cc33;">#66cc33</td>

<td style="background-color:#66cc66;">#66cc66</td>

<td style="background-color:#66cc99;">#66cc99</td>

<td style="background-color:#66cccc;">#66cccc</td>

<td style="background-color:#66ccff;">#66ccff</td>

</tr>

<tr>

<td style="background-color:#66ff00;">#66ff00</td>

<td style="background-color:#66ff33;">#66ff33</td>

<td style="background-color:#66ff66;">#66ff66</td>

<td style="background-color:#66ff99;">#66ff99</td>

<td style="background-color:#66ffcc;">#66ffcc</td>

<td style="background-color:#66ffff;">#66ffff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#990000;">#990000</td>

<td style="background-color:#990033;">#990033</td>

<td style="background-color:#990066;">#990066</td>

<td style="background-color:#990099;">#990099</td>

<td style="background-color:#9900cc;">#9900cc</td>

<td style="background-color:#9900ff;">#9900ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#993300;">#993300</td>

<td style="background-color:#993333;">#993333</td>

<td style="background-color:#993366;">#993366</td>

<td style="background-color:#993399;">#993399</td>

<td style="background-color:#9933cc;">#9933cc</td>

<td style="background-color:#9933ff;">#9933ff</td>

</tr>

<tr style="color:#fff;">

<td style="background-color:#996600;">#996600</td>

<td style="background-color:#996633;">#996633</td>

<td style="background-color:#996666;">#996666</td>

<td style="background-color:#996699;">#996699</td>

<td style="background-color:#9966cc;">#9966cc</td>

<td style="background-color:#9966ff;">#9966ff</td>

</tr>

<tr>

<td style="background-color:#999900;">#999900</td>

<td style="background-color:#999933;">#999933</td>

<td style="background-color:#999966;">#999966</td>

<td style="background-color:#999999;">#999999</td>

<td style="background-color:#9999cc;">#9999cc</td>

<td style="background-color:#9999ff;">#9999ff</td>

</tr>

<tr>

<td style="background-color:#99cc00;">#99cc00</td>

<td style="background-color:#99cc33;">#99cc33</td>

<td style="background-color:#99cc66;">#99cc66</td>

<td style="background-color:#99cc99;">#99cc99</td>

<td style="background-color:#99cccc;">#99cccc</td>

<td style="background-color:#99ccff;">#99ccff</td>

</tr>

<tr>

<td style="background-color:#99ff00;">#99ff00</td>

<td style="background-color:#99ff33;">#99ff33</td>

<td style="background-color:#99ff66;">#99ff66</td>

<td style="background-color:#99ff99;">#99ff99</td>

<td style="background-color:#99ffcc;">#99ffcc</td>

<td style="background-color:#99ffff;">#99ffff</td>

</tr>

<tr>

<td style="background-color:#cc0000;">#cc0000</td>

<td style="background-color:#cc0033;">#cc0033</td>

<td style="background-color:#cc0066;">#cc0066</td>

<td style="background-color:#cc0099;">#cc0099</td>

<td style="background-color:#cc00cc;">#cc00cc</td>

<td style="background-color:#cc00ff;">#cc00ff</td>

</tr>

<tr>

<td style="background-color:#cc3300;">#cc3300</td>

<td style="background-color:#cc3333;">#cc3333</td>

<td style="background-color:#cc3366;">#cc3366</td>

<td style="background-color:#cc3399;">#cc3399</td>

<td style="background-color:#cc33cc;">#cc33cc</td>

<td style="background-color:#cc33ff;">#cc33ff</td>

</tr>

<tr>

<td style="background-color:#cc6600;">#cc6600</td>

<td style="background-color:#cc6633;">#cc6633</td>

<td style="background-color:#cc6666;">#cc6666</td>

<td style="background-color:#cc6699;">#cc6699</td>

<td style="background-color:#cc66cc;">#cc66cc</td>

<td style="background-color:#cc66ff;">#cc66ff</td>

</tr>

<tr>

<td style="background-color:#cc9900;">#cc9900</td>

<td style="background-color:#cc9933;">#cc9933</td>

<td style="background-color:#cc9966;">#cc9966</td>

<td style="background-color:#cc9999;">#cc9999</td>

<td style="background-color:#cc99cc;">#cc99cc</td>

<td style="background-color:#cc99ff;">#cc99ff</td>

</tr>

<tr>

<td style="background-color:#cccc00;">#cccc00</td>

<td style="background-color:#cccc33;">#cccc33</td>

<td style="background-color:#cccc66;">#cccc66</td>

<td style="background-color:#cccc99;">#cccc99</td>

<td style="background-color:#cccccc;">#cccccc</td>

<td style="background-color:#ccccff;">#ccccff</td>

</tr>

<tr>

<td style="background-color:#ccff00;">#ccff00</td>

<td style="background-color:#ccff33;">#ccff33</td>

<td style="background-color:#ccff66;">#ccff66</td>

<td style="background-color:#ccff99;">#ccff99</td>

<td style="background-color:#ccffcc;">#ccffcc</td>

<td style="background-color:#ccffff;">#ccffff</td>

</tr>

<tr>

<td style="background-color:#ff0000;">#ff0000</td>

<td style="background-color:#ff0033;">#ff0033</td>

<td style="background-color:#ff0066;">#ff0066</td>

<td style="background-color:#ff0099;">#ff0099</td>

<td style="background-color:#ff00cc;">#ff00cc</td>

<td style="background-color:#ff00ff;">#ff00ff</td>

</tr>

<tr>

<td style="background-color:#ff3300;">#ff3300</td>

<td style="background-color:#ff3333;">#ff3333</td>

<td style="background-color:#ff3366;">#ff3366</td>

<td style="background-color:#ff3399;">#ff3399</td>

<td style="background-color:#ff33cc;">#ff33cc</td>

<td style="background-color:#ff33ff;">#ff33ff</td>

</tr>

<tr>

<td style="background-color:#ff6600;">#ff6600</td>

<td style="background-color:#ff6633;">#ff6633</td>

<td style="background-color:#ff6666;">#ff6666</td>

<td style="background-color:#ff6699;">#ff6699</td>

<td style="background-color:#ff66cc;">#ff66cc</td>

<td style="background-color:#ff66ff;">#ff66ff</td>

</tr>

<tr>

<td style="background-color:#ff9900;">#ff9900</td>

<td style="background-color:#ff9933;">#ff9933</td>

<td style="background-color:#ff9966;">#ff9966</td>

<td style="background-color:#ff9999;">#ff9999</td>

<td style="background-color:#ff99cc;">#ff99cc</td>

<td style="background-color:#ff99ff;">#ff99ff</td>

</tr>

<tr>

<td style="background-color:#ffcc00;">#ffcc00</td>

<td style="background-color:#ffcc33;">#ffcc33</td>

<td style="background-color:#ffcc66;">#ffcc66</td>

<td style="background-color:#ffcc99;">#ffcc99</td>

<td style="background-color:#ffcccc;">#ffcccc</td>

<td style="background-color:#ffccff;">#ffccff</td>

</tr>

<tr>

<td style="background-color:#ffff00;">#ffff00</td>

<td style="background-color:#ffff33;">#ffff33</td>

<td style="background-color:#ffff66;">#ffff66</td>

<td style="background-color:#ffff99;">#ffff99</td>

<td style="background-color:#ffffcc;">#ffffcc</td>

<td style="background-color:#ffffff;">#ffffff</td>

</tr>

</table>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 支持向量机非线性回归通用MATLAB程序解析 #### 一、概述 本文将详细介绍一个基于MATLAB的支持向量机(SVM)非线性回归的通用程序。该程序采用支持向量机方法来实现数据的非线性回归,并通过不同的核函数设置来适应不同类型的数据分布。此外,该程序还提供了数据预处理的方法,使得用户能够更加方便地应用此程序解决实际问题。 #### 二、核心功能与原理 ##### 1. 支持向量机(SVM) 支持向量机是一种监督学习模型,主要用于分类和回归分析。对于非线性回归任务,SVM通过引入核技巧(kernel trick)将原始低维空间中的非线性问题转换为高维空间中的线性问题,从而实现有效的非线性建模。 ##### 2. 核函数 核函数的选择直接影响到模型的性能。本程序内置了三种常用的核函数: - **线性核函数**:`K(x, y) = x'y` - **多项式核函数**:`K(x, y) = (x'y + 1)^d` - **径向基函数(RBF)**:`K(x, y) = exp(-γ|x - y|^2)` 其中RBF核函数被广泛应用于非线性问题中,因为它可以处理非常复杂的非线性关系。本程序默认使用的是RBF核函数,参数`D`用于控制高斯核函数的宽度。 ##### 3. 数据预处理 虽然程序本身没有直接涉及数据预处理的过程,但在实际应用中,对数据进行适当的预处理是非常重要的。常见的预处理步骤包括归一化、缺失值处理等。 ##### 4. 模型参数 - **Epsilon**: ε-insensitive loss function的ε值,控制回归带宽。 - **C**: 松弛变量的惩罚系数,控制模型复杂度与过拟合的风险之间的平衡。 #### 三、程序实现细节 ##### 1. 函数输入与输出 - **输入**: - `X`: 输入特征矩阵,维度为(n, l),其中n是特征数量,l是样本数量。 - `Y`: 目标值向量,长度为l。 - `Epsilon`: 回归带宽。 - `C`: 松弛变量的惩罚系数。 - `D`: RBF核函数的参数。 - **输出**: - `Alpha1`: 正的拉格朗日乘子向量。 - `Alpha2`: 负的拉格朗日乘子向量。 - `Alpha`: 拉格朗日乘子向量。 - `Flag`: 标记向量,表示每个样本的类型。 - `B`: 偏置项。 ##### 2. 核心代码解析 程序首先计算所有样本间的核矩阵`K`,然后构建二次规划问题并求解得到拉格朗日乘子向量。根据拉格朗日乘子的值确定支持向量,并计算偏置项`B`。 - **核矩阵计算**:采用RBF核函数,通过`exp(-(sum((xi-xj).^2)/D))`计算任意两个样本之间的相似度。 - **二次规划**:构建目标函数和约束条件,使用`quadprog`函数求解最小化问题。 - **支持向量识别**:根据拉格朗日乘子的大小判断每个样本是否为支持向量,并据此计算偏置项`B`。 #### 四、程序扩展与优化 - **多核函数支持**:可以通过增加更多的核函数选项,提高程序的灵活性。 - **自动调参**:实现参数自动选择的功能,例如通过交叉验证选择最优的`Epsilon`和`C`值。 - **并行计算**:利用MATLAB的并行计算工具箱加速计算过程,特别是当样本量很大时。 #### 五、应用场景 该程序适用于需要进行非线性回归预测的场景,如经济预测、天气预报等领域。通过调整核函数和参数,可以有效应对各种类型的非线性问题。 ### 总结 本程序提供了一个支持向量机非线性回归的完整实现框架,通过灵活的核函数设置和参数调整,能够有效地处理非线性问题。对于需要进行回归预测的应用场景,这是一个非常实用且强大的工具。
项目:JavaScript 中的 Canyon Runner 游戏 Canyon Runner Game 是一个 HTML5 和 JavaScript 项目。这款游戏看起来很棒,玩起来很有趣。这款游戏使用了 Phaser框架。如果你想编写一个简单的游戏,那么这款射击游戏就是你必玩的游戏。这款游戏包含大量 JavaScript,用于对游戏的某些部分进行验证。 游戏玩法 要运行此游戏,您不需要任何类型的本地服务器,但需要 浏览器。您可以使用 Google Chrome 或 Mozilla Firefox 获得更好、更优化的游戏体验。要先玩游戏,请在浏览 器中单击 index.html 文件打开游戏。打开后,将出现一个带有开始菜单选项的屏幕。游戏的控制是箭头键和空格键,用于射击障碍物。游戏有一个主要的太空敌人和一个健康强化。具有惊人的视差效果、复古声音等。 这款游戏的射击是自动的。当你开始游戏时,射手开始发射火箭。记住这是一款两级或两章的游戏。第一级处理障碍和障碍。你需要越过这些障碍,不要让它们碰到你。即使它们碰到你,你也可以通过吃健康能量来恢复你的健康。你可以跑得更快,也可以控制你的宇宙飞船速度。 当你通过第一关后,你将在第二章中面对主要敌人。他会不断向你发射火箭导弹。你必须躲避它们并保护自己。你可以用火箭导弹攻击敌人来杀死他们。如果你能杀死敌人,你就赢了游戏。 这款游戏玩起来很有趣,重制它更是有趣。所以希望你能给这款游戏添加一些额外的关卡。 要查看我们的项目,您可以查看下面的图像滑块。我们建议您使用 Google Chrome 以获得更好的游戏性能。 演示: 该项目为国外大神项目,可以作为毕业设计的项目,也可以作为大作业项目,不用担心代码重复,设计重复等,如果需要对项目进行修改,需要具备一定基础知识。 注意:如果装有360等杀毒软件,可能会出现误报的情况,源码本身并无病毒,使用源码时可以关闭360,或者添加信任。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值