ace-links

http://andylin02.iteye.com/category/70553?page=4

http://blog.youkuaiyun.com/akailee/


http://www.cs.wustl.edu/~schmidt/ACE-documentation.html

http://www.cs.wustl.edu/~schmidt/ACE.html

!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>首页</title> <link rel="stylesheet" href="styles.css"> <!-- 引入网站图标 --> <link rel="icon" href="C:\Users\lenovo\Pictures\黄子\0076wjjTly1hjti34wishj30si0sijtv.jpg"> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } /* 导航栏 */ header { background-color: #4CAF50; color: white; padding: 10px 20px; text-align: center; } nav { display: flex; justify-content: space-between; align-items: center; } .logo a { font-size: 24px; color: white; text-decoration: none; } .nav-links { list-style-type: none; padding: 0; margin: 0; } .nav-links li { display: inline; margin-left: 10px; } .nav-links a { color: white; text-decoration: none; } /* 商品展示区 */ .product-grid { display: flex; gap: 20px; flex-wrap: wrap; padding: 20px; } .product-item { border: 1px solid #ccc; padding: 10px; width: 200px; text-align: center; } .product-item img { max-width: 100%; height: auto; } /* 购物车 */ #cart { margin-top: 20px; } .logo img { width: 50px; /* 设置 Logo 的宽度 */ height: auto; /* 保持宽高比例 */ } #cart-list { list-style-type: none; padding: 0; } #cart-list li { margin: 5px 0; } /* 页脚 */ footer { text-align: center; padding: 10px; background-color: #f9f9f9; margin-top: 20px; } </style> </head> <body> <!-- 导航栏 --> <header> <nav> <div class="logo"> <a href="index.html"> <img src="C:\Users\lenovo\Pictures\黄子\0076wjjTly1hjti34wishj30si0sijtv.jpg" alt="网站Logo"> </a> </div> <ul class="nav-links"> <li><a href="index.html">首页</a></li> <li><a href="cart.html">购物车(<span id="cart-count">0</span>)</a></li> </ul> </nav> </header> <!-- 商品展示区 --> <main> <section id="products"> <h2>商品列表</h2> <div class="product-grid"> <div class="product-item" data-category="novel"> <img src="https://tse4-mm.cn.bing.net/th/id/OIP-C.E1l9GHWnkbNLjcnJpqTpPAHaKC?rs=1&pid=ImgDetMain" alt="产品1"> <h3>产品1:红楼梦</h3> <p>价格:$50</p> <button onclick="addToCart('产品1:红楼梦', 50)">添加到购物车</button> </div> <div class="product-item" data-category="novel"> <img src="https://ts1.tc.mm.bing.net/th/id/R-C.115539104325e27be2f0ee05ca4c080b?rik=xSg%2bwFfcC1%2b2QQ&riu=http%3a%2f%2fimages.bookuu.com%2fbook%2fC%2f01638%2f2634742-fm.jpg&ehk=H9B6G0WCUFgsQjHJE1iAtNWwpFnhmdAg30ByUapdJfY%3d&risl=&pid=ImgRaw&r=0" alt="产品2"> <h3>产品2:西游记</h3> <p>价格:$75</p> <button onclick="addToCart('产品2:西游记', 75)">添加到购物车</button> </div> <div class="product-item" data-category="novel"> <img src="https://tse3-mm.cn.bing.net/th/id/OIP-C.3JrruqZy-PznYJxAHsoUdAHaKe?rs=1&pid=ImgDetMain" alt="产品3"> <h3>产品3:水浒传</h3> <p>价格:$100</p> <button onclick="addToCart('产品3:水浒传', 100)">添加到购物车</button> </div> <div class="product-item" data-category="novel"> <img src="https://ts1.tc.mm.bing.net/th/id/R-C.741a4e06ace8ed3a2a47d2a7fc53efa6?rik=OTex%2bIz3NhB3vw&riu=http%3a%2f%2fsdwypress.com%2fuploads%2fimage%2f2106%2f24%2f210624143125esxhc.jpg&ehk=bJB%2f6p6aW7wkHHbCiUTcnRf%2bNLwOktGxYScy28rgjwg%3d&risl=&pid=ImgRaw&r=0" alt="产品2"> <h3>产品4:三国演义</h3> <p>价格:$55</p> <button onclick="addToCart('产品4:三国演义', 55)">添加到购物车</button> </div> <div class="product-item" data-category="novel"> <img src="https://tse1-mm.cn.bing.net/th/id/OIP-C.4tBovpeIT27lEOj0FuFT5QHaKu?rs=1&pid=ImgDetMain" alt="产品2"> <h3>产品5:红岩</h3> <p>价格:$65</p> <button onclick="addToCart('产品5:红岩', 65)">添加到购物车</button> </div> <div class="product-item" data-category="history"> <img src="https://tse4-mm.cn.bing.net/th/id/OIP-C.PgSOBNz_XC3Q2b_O9Nkh-wHaLS?rs=1&pid=ImgDetMain" alt="产品2"> <h3>产品6:开放中的变迁</h3> <p>价格:$50</p> <button onclick="addToCart('产品6:开放中的变迁', 50)">添加到购物车</button> </div> <div class="product-item" data-category="history"> <img src="https://tse2-mm.cn.bing.net/th/id/OIP-C.1O2NDFn3NcQ5UtfKVUX9qwHaLD?rs=1&pid=ImgDetMain" alt="产品2"> <h3>产品7:中国近代史</h3> <p>价格:$55</p> <button onclick="addToCart('产品7:中国近代史', 55)">添加到购物车</button> </div> <div class="product-item" data-category="history"> <img src="https://img3.doubanio.com/lpic/s27258223.jpg" alt="产品2"> <h3>产品8:国史大纲</h3> <p>价格:$65</p> <button onclick="addToCart('产品8:国史大纲', 65)">添加到购物车</button> </div> <div class="product-item" data-category="science"> <img src="https://so1.360tres.com/t0151ae7fb7ec6d8870.jpg" alt="产品2"> <h3>产品9:时间简史</h3> <p>价格:$65</p> <button onclick="addToCart('产品9:时间简史', 65)">添加到购物车</button> </div> <div class="product-item" data-category="science"> <img src="https://img.alicdn.com/bao/uploaded/i1/3715517208/O1CN01yttyGV237JTlFwGhn_!!0-item_pic.jpg" alt="产品2"> <h3>产品10:从一到无穷大:科学中的事实和臆测</h3> <p>价格:$65</p> <button onclick="addToCart('产品10:从一到无穷大:科学中的事实和臆测', 65)">添加到购物车</button> </div> </div> </section> <section id="cart"> <h2>购物车</h2> <ul id="cart-list"></ul> <p>总价:<span id="total-price">$0</span></p> <button onclick="checkout()">结算</button> </section> </main> <footer> <p>© 2023 我的电商网站</p> </footer> <script> let cart = []; // 更新购物车数量 function updateCartCount() { const count = cart.reduce((sum, item) => sum + item.quantity, 0); document.getElementById('cart-count').textContent = count; } // 添加商品到购物车 function addToCart(name, price) { const existingItem = cart.find(item => item.name === name); if (existingItem) { existingItem.quantity += 1; // 如果商品已存在,增加数量 } else { cart.push({ name, price, quantity: 1 }); // 否则新增商品 } updateCart(); // 更新购物车显示 updateCartCount(); // 更新购物车数量 } // 更新购物车显示 function updateCart() { const cartList = document.getElementById('cart-list'); const totalPriceElement = document.getElementById('total-price'); // 清空购物车列表 cartList.innerHTML = ''; let totalPrice = 0; // 遍历购物车中的商品并更新显示 cart.forEach((item, index) => { const li = document.createElement('li'); li.textContent = `${item.name} x${item.quantity} - $${item.price * item.quantity}`; // 添加删除按钮 const deleteButton = document.createElement('button'); deleteButton.textContent = '删除'; deleteButton.onclick = () => removeFromCart(index); // 绑定删除事件 li.appendChild(deleteButton); cartList.appendChild(li); totalPrice += item.price * item.quantity; }); // 更新总价 totalPriceElement.textContent = `$${totalPrice}`; } // 从购物车中移除商品 function removeFromCart(index) { cart.splice(index, 1); // 根据索引移除商品 updateCart(); // 更新购物车显示 updateCartCount(); // 更新购物车数量 } // 结算功能 function checkout() { if (cart.length === 0) { alert('购物车为空,请添加商品!'); } else { alert(`您已成功结算!总价为:$${document.getElementById('total-price').textContent}`); cart = []; updateCart(); updateCartCount(); } } </script> </body> </html>在购物车旁边加一个小logo
05-23
【轴承故障诊断】加权多尺度字典学习模型(WMSDL)及其在轴承故障诊断上的应用(Matlab代码实现)内容概要:本文介绍了加权多尺度字典学习模型(WMSDL)在轴承故障诊断中的应用,并提供了基于Matlab的代码实现。该模型结合多尺度分析与字典学习技术,能够有效提取轴承振动信号中的故障特征,提升故障识别精度。文档重点阐述了WMSDL模型的理论基础、算法流程及其在实际故障诊断中的实施步骤,展示了其相较于传统方法在特征表达能力和诊断准确性方面的优势。同时,文中还提及该资源属于一个涵盖多个科研方向的技术合集,包括智能优化算法、机器学习、信号处理、电力系统等多个领域的Matlab仿真案例。; 适合人群:具备一定信号处理和机器学习基础,从事机械故障诊断、工业自动化、智能制造等相关领域的研究生、科研人员及工程技术人员。; 使用场景及目标:①学习并掌握加权多尺度字典学习模型的基本原理与实现方法;②将其应用于旋转机械的轴承故障特征提取与智能诊断;③结合实际工程数据复现算法,提升故障诊断系统的准确性和鲁棒性。; 阅读建议:建议读者结合提供的Matlab代码进行实践操作,重点关注字典学习的训练过程与多尺度分解的实现细节,同时可参考文中提到的其他相关技术(如VMD、CNN、BILSTM等)进行对比实验与算法优化。
【硕士论文复现】可再生能源发电与电动汽车的协同调度策略研究(Matlab代码实现)内容概要:本文档围绕“可再生能源发电与电动汽车的协同调度策略研究”展开,旨在通过Matlab代码复现硕士论文中的核心模型与算法,探讨可再生能源(如风电、光伏)与大规模电动汽车接入电网后的协同优化调度方法。研究重点包括考虑需求侧响应的多时间尺度调度、电动汽车集群有序充电优化、源荷不确定性建模及鲁棒优化方法的应用。文中提供了完整的Matlab实现代码与仿真模型,涵盖从场景生成、数学建模到求解算法(如NSGA-III、粒子群优化、ADMM等)的全过程,帮助读者深入理解微电网与智能电网中的能量管理机制。; 适合人群:具备一定电力系统基础知识和Matlab编程能力的研究生、科研人员及从事新能源、智能电网、电动汽车等领域技术研发的工程人员。; 使用场景及目标:①用于复现和验证硕士论文中的协同调度模型;②支撑科研工作中关于可再生能源消纳、电动汽车V2G调度、需求响应机制等课题的算法开发与仿真验证;③作为教学案例辅助讲授能源互联网中的优化调度理论与实践。; 阅读建议:建议结合文档提供的网盘资源下载完整代码,按照目录顺序逐步学习各模块实现,重点关注模型构建逻辑与优化算法的Matlab实现细节,并通过修改参数进行仿真实验以加深理解。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值