高德地图实现点聚合功能的详细步骤


目录

      • 介绍
      • 准备工作
        • 1.注册并登录高德地图开放平台,申请密钥
        • 2.在Vue项目中安装高德地图的相关库/插件。
      • 一、点聚合
        • 1.引入高德地图API
        • <font color = purple>initializeMap()
        • <font color = purple>loadData()
        • <font color = purple>createMarkerClusterer()
        • <font color = purple>createPopupContent(point)
        • <font color = purple>完成代码如下:
    • 二、结尾

介绍

在现代Web和移动应用中,地图成为了不可或缺的一部分。本文将介绍如何在Vue前端开发中利用高德地图API实现点聚合、自定义信息窗口以及在小程序中打开导航地图的功能。
### 使用案例和场景
  1. 点聚合: 展示如何在地图上将密集的标注点进行聚合,提高地图的可读性和性能。
  2. 自定义信息窗: 解释如何为地图上的标注点创建自定义的信息窗口,以展示更多相关信息。
  3. 小程序导航地图: 演示如何在小程序中利用高德地图开发,实现导航功能,帮助用户找到目的地。

准备工作

在进入具体实现之前,需要确保以下准备工作已经完成:

  1. 注册高德开发者账号并创建应用。
  2. 在Vue项目中安装高德地图的相关库/插件。
  3. 了解Vue基础知识和组件开发。

1.注册并登录高德地图开放平台,申请密钥

19f39ecc83992f23e04271557ba973ed.png
image.png
这里有微信小程序需求的需要在添加一个,web和小程序需要分开不能混用。
image.png

2.在Vue项目中安装高德地图的相关库/插件。

npm  i  @amap/amap-jsapi-loader -S

首先,让我们从点聚合开始。

一、点聚合

实现效果如下:
更换搜索条件,地图会重新加载点位数据
image.png

地图放大后效果:
![在这里插入图片描述](https://img-blog.csdnimg.cn/f051dc33e0f245a5b610c06b4fbea8e5.png

1.引入高德地图API

在整个项目中引入高德地图的JavaScript库,并同时加载了一些插件(AMap.MarkerClustererAMap.AutocompleteAMap.GeocoderAMap.DistrictSearch)。这些插件提供了一些高级功能,比如标注点聚合、地点自动完成、地理编码、行政区划搜索等

、、
image.png
index.html中加入以下代码

    <script type="text/javascript"
      src="http://webapi.amap.com/maps?v=1.4.15&key=你注册的key&plugin=AMap.MarkerClusterer,AMap.Autocomplete,AMap.Geocoder,AMap.DistrictSearch"></script>

initializeMap()

这个方法用于初始化地图实例。在初始化地图之前,您需要配置一些选项,例如缩放级别、中心点坐标等。这里是具体的解释:

  • Vue.prototype. m a p = n e w A M a p . M a p ( ′ c o n t a i n e r ′ , . . . ) ∗ ∗ : 在 ∗ ∗ V u e ∗ ∗ 的原型对象上添加一个名为 ∗ ∗ map = new AMap.Map('container', {...})**: 在**Vue**的原型对象上添加一个名为** map=newAMap.Map(container,...):Vue的原型对象上添加一个名为map的属性,将一个新的高德地图实例赋值给它。**‘container’**是一个HTML元素的ID,它将成为地图的容器。
  • zoom: 11: 设置地图的缩放级别为11。
  • center: [114.16129136801659, 22.64461948509109]: 设置地图的中心点坐标为给定的经度和纬度。
  • resizeEnable: true: 启用地图容器大小自适应窗口变化。
  • averageCenter: true: 当标注点聚合时,将平均值作为聚合点的坐标。

最后,将地图实例存储在组件的map属性中,以便在其他方法中可以访问和操作地图实例。

loadData()

这个方法用于加载数据并在地图上渲染标记点。具体的解释如下:

  • this.kgOrder(): 调用**kgOrder()方法来获取数据。这是一个异步操作,它返回一个Promise对象,当数据成功获取时,会执行.then()**中的代码。
  • .then((gpsData) => {…}): 当数据成功获取时,将获取的数据作为gpsData参数传入回调函数。
  • this.pointList = gpsData;: 将获取的数据赋值给组件的pointList属性,这样在其他地方可以使用这个数据。
  • this.createMarkerClusterer();: 调用**createMarkerClusterer()**方法来渲染地图标记点,实现标记点的聚合显示。
  • .catch((error) => {…});: 如果获取数据时发生错误,会在这里捕获并输出错误信息。

createMarkerClusterer()

这个方法负责创建标记点的聚合器,以便在地图上显示聚合点。下面是该方法的解释:

  • let _this = this;: 将当前组件实例保存在 _this 变量中,以便在闭包函数中访问。
  • let markers = [];: 创建一个空数组用于存储所有标记点的实例。
  • var styles = […]: 定义了一组样式,用于指定标记点聚合后的图标样式,根据不同级别的聚合。
  • _this.pointList.forEach(point => {…});: 遍历 pointList 数组中的每个点,创建对应的标记点,并将这些标记点实例存储在 markers 数组中。
  • marker.on(“click”, function(e) {…});: 给每个标记点添加一个点击事件监听器。当用户点击一个标记点时,会触发一个事件,此时会创建一个信息窗口(弹出框)以显示该标记点的详细信息。
  • popup.open(_this.map, marker.getPosition());: 打开信息窗口,将其显示在地图上,并将其定位到被点击的标记点位置。
  • _this.map.plugin([“AMap.MarkerClusterer”], function() {…});: 调用高德地图的 MarkerClusterer 插件,创建标记点聚合。这个插件将一组标记点进行聚合,以便在地图上显示更好的可视化效果。

createPopupContent(point)

这个方法负责创建信息窗口的内容,以显示被点击的标记点的详细信息。

  • return …;: 返回一个字符串,这个字符串就是信息窗口的HTML内容。
  • ${point.startaddress}: 通过模板字符串插入被点击标记点的起始地址信息。

这些方法共同协作,实现了在地图上显示聚合标记点和信息窗口的功能。当用户点击一个标记点时,会显示该点的详细信息,以提供更多的交互和信息展示。

完成代码如下:

<template>
  <div>
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-model-item label="公里数范围(KM)">
              <div class="input-container">
                <a-input-number v-model="distance" :min="0" :max="9999" style="width: 100px" />
                <span class="divider">-</span>
                <a-input-number v-model="enddistance" :min="0" :max="9999" style="width: 100px" />
              </div>
            </a-form-model-item>
          </a-col>
          <a-col :xl="3" :lg="7" :md="8" :sm="24">
            <a-form-model-item label="年">
              <a-select v-model="year" style="width: 120px;">
                <a-select-option v-for="year in yearOptions" :key="year" :value="year">{{ year }}</a-select-option>
              </a-select>
            </a-form-model-item>
          </a-col>
          <a-col :xl="3" :lg="7" :md="8" :sm="24">
            <a-form-model-item label="月">
              <a-select v-model="month" style="width: 120px;">
                <a-select-option v-for="month in monthOptions" :key="month" :value="month">{{ month }}</a-select-option>
              </a-select>
            </a-form-model-item>
          </a-col>
          <a-col :xl="3" :lg="7" :md="8" :sm="24">
            <a-form-model-item label="日">
              <a-select v-model="day" style="width: 120px;">
                <a-select-option v-for="day in dayOptions" :key="day" :value="day">{{ day }}</a-select-option>
              </a-select>
            </a-form-model-item>
          </a-col>
          <!--  <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-model-item label="选择日期" prop="selectedDate">
              <a-date-picker v-model="selectedDate" @change="handleDateChange" />
            </a-form-model-item>
          </a-col> -->
          <a-col :xl="3" :lg="7" :md="8" :sm="24">
            <a-form-model-item label="小时">
            <a-select v-model="hour" style="width: 120px;">
              <a-select-option v-for="hour in hourOptions" :key="hour" :value="hour">{{ hour }}</a-select-option>
            </a-select>
                 </a-form-model-item>
            <!-- <a-form-model-item label="选择小时" prop="selectedHour">
              <a-time-picker v-model="selectedHour" format="HH" @change="handleHourChange" />
            </a-form-model-item> -->
          </a-col>
          <a-col :xl="5" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <div id="container">
      <slot></slot>
    </div>

  </div>
</template>
<script>
  import Vue from 'vue'
  import moment from 'moment'
  import {
    getAction,
    httpAction,
    postAction
  } from '../../api/manage'
  export default {
    props: {
      // licence: {
      //   type: String, // 参数的数据类型
      //   required: true // 参数是否必需
      // }
    },
    data() {
      return {
        dayOptions: [],
        monthOptions: [],
        hourOptions: [],
        yearOptions: [], // 存储年份选项的数组
        distance: 10, // 默认开始距离为100000
        enddistance: 20,
        selectedDate: null,
        selectedHour: null, // 设置一个默认值 '00'
        year: null,
        month: null,
        day: null,
        hour: null,
        url: {
          kgOrder: '/jeecg-customers/statistics/kgOrder/all-list',
        },
        map: '',
        pointList: [],
        popup: null,
      }
    },
    watch: {
      selectedDate: {
        immediate: true,
        handler(newVal) {
          if (newVal) {
            const date = new Date(newVal);
            this.year = date.getFullYear();
            this.month = date.getMonth() + 1;
            this.day = date.getDate();
          }
        }
      },
      selectedHour: {
        immediate: true,
        handler(newVal) {
          const momentObj = moment(newVal, "HH");
          if (!isNaN(momentObj)) {
            this.hour = momentObj.hours();
          }
        }
      },
    },
    provide: function() {
      return {
        removeOlver: this.removeOlver,
        addOverlay: this.addOverlay,
        markers: [],
      }
    },

    components: {

    },
    created() {

    },
    mounted() {
      this.generateYearOptions();
      this.initializeMap(); // 初始化地图
      this.loadData(); // 加载数据
      this.generateMonthOptions()
      this.generateDayOptions()
      this.generateHourOptions();
    },
    methods: {
      initializeMap() {
        Vue.prototype.$map = new AMap.Map('container', {
          zoom: 11,
          center: [114.16129136801659, 22.64461948509109],
          resizeEnable: true,
          averageCenter: true,
        });
        this.map = Vue.prototype.$map; // 存储地图实例的引用
      },
      loadData() {
        this.kgOrder()
          .then((gpsData) => {
            this.pointList = gpsData;
            this.createMarkerClusterer(); // 渲染地图标记点
          })
          .catch((error) => {
            console.error(error);
          });
      },
      searchQuery() {
        this.pointList = []; // 清空原有数据
        // 移除之前的地图实例
        if (this.map) {
          this.map.destroy();
          this.map = null;
        }
        // 创建新的地图实例并重新加载数据
        this.initializeMap();
        this.loadData();
      },
      searchReset() {
        this.selectedDate = null;
        this.selectedHour = null;
        this.year = null,
          this.month = null,
          this.day = null,
          this.hour = null,
          this.distance = 100, // 默认开始距离为100000
          this.enddistance = null
      },
      handleDateChange(value) {
        const date = new Date(value);
        this.year = date.getFullYear();
        this.month = date.getMonth() + 1;
        this.day = date.getDate();
      },
      handleHourChange(value) {
        const momentObj = moment(value, "HH");
        if (!isNaN(momentObj)) {
          this.hour = momentObj.hours();
        }
        console.log(this.hour)
      },
      kgOrder() {
        return new Promise((resolve, reject) => {
          const Params = {
            year: this.year,
            month: this.month,
            day: this.day,
            hour: this.hour,
            distance: this.distance,
            enddistance: this.enddistance
          }
          console.log(Params)
          // 快狗统计数据
          getAction(this.url.kgOrder, Params).then((res) => {
            console.log(res);
            if (res.success) {
              // var t = res.result;
              // this.pointList = t
              resolve(res.result); // 返回参数
            } else {
              reject(new Error('Failed to get GPS data.')); // 返回错误
              this.$message.info(res.message)
            }
          });
        });
      },
      /**
       * 动态更改中心点位
       */
      setCenter(lng, lat) {
        console.log('New center:', lng, lat);
        this.map.setCenter(new AMap.LngLat(lng, lat));
      },
      removeOlver(overlay) {
        this.$nextTick(() => {
          if (overlay) {
            this.map.remove(overlay)
          }
        })
      },
      addOverlay(overlay) {
        this.$nextTick(() => {
          // console.log(this.map);
          this.map && this.map.add(overlay)
        })
      },
      delOne() {
        // 删除了数组的元素,但是没用,需要调用地图的清除标记的方法
        // this.arr.pop()
      },
      // 海量点聚合,10w数量以下
      createMarkerClusterer() {
        let _this = this
        let markers = []
        // 利用styles属性修改点聚合的图标样式,这个是聚合之后的显示效果,在这里定义
        var styles = [{
          url: "https://a.amap.com/jsapi_demos/static/images/blue.png",
          size: new AMap.Size(32, 32),
          offset: new AMap.Pixel(-16, -16)
        }, {
          url: "https://a.amap.com/jsapi_demos/static/images/green.png",
          size: new AMap.Size(32, 32),
          offset: new AMap.Pixel(-16, -16)
        }, {
          url: "https://a.amap.com/jsapi_demos/static/images/orange.png",
          size: new AMap.Size(36, 36),
          offset: new AMap.Pixel(-18, -18)
        }, {
          url: "https://a.amap.com/jsapi_demos/static/images/red.png",
          size: new AMap.Size(48, 48),
          offset: new AMap.Pixel(-24, -24)
        }, {
          url: "https://a.amap.com/jsapi_demos/static/images/darkRed.png",
          size: new AMap.Size(48, 48),
          offset: new AMap.Pixel(-24, -24)
        }];
        _this.pointList.forEach(point => {

          // 这里是点击到无法聚合,到单个点的时候展示的效果
          var marker = new AMap.Marker({
            position: new AMap.LngLat(point.startLng, point.startLat),
            title: point.startaddress,
            // content: `<div><img style="height:35px;width:30px; -moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);"src="${require("@/assets/car.png")}" alt="Car Icon" ></div><div style="width:100px;padding-left:3px;font-size:14px;margin-left:5px;height:20px;background:#fff;border:1px solid #000;text-align:canter;line-height:20px;font-size: 14px;">${ point.startaddress}</div>`,
          });
          //给marker增加click事件
          marker.on("click", function(e) {
            // Create a popup instance
            var popup = new AMap.InfoWindow({
              content: _this.createPopupContent(point),
              offset: new AMap.Pixel(0, -30),
              closeWhenClickMap: true // Close the popup when the map is clicked
            });

            popup.open(_this.map, marker.getPosition());
            _this.popup = popup; // Store reference to the active popup window
          });

          markers.push(marker);
        });
        //添加聚合组件
        _this.map.plugin(["AMap.MarkerClusterer"], function() {
          new AMap.MarkerClusterer(
            _this.map, // 地图实例
            markers, // 海量点组成的数组
            {
              styles: styles,
              gridSize: 80
            }
          );
        });

      },
      createPopupContent(point) {
        return `
         <div class="popup-container">
           <div class="popup-header"></div>
           <div class="popup-content">
             <p>${point.startaddress}</spen></p>
           </div>
         </div>
       `;
      },

      // 生成年份选项数组
      generateYearOptions() {
        const currentYear = new Date().getFullYear();
        for (let year = currentYear; year >= 1900; year--) {
          this.yearOptions.push(year);
        }
      },
      // 生成月份选项数组
      generateMonthOptions() {
        for (let month = 1; month <= 12; month++) {
          this.monthOptions.push(month);
        }
      },
      // 生成日选项数组
      generateDayOptions() {
        for (let day = 1; day <= 31; day++) {
          this.dayOptions.push(day);
        }
      },
      generateHourOptions() {
        for (let hour = 0; hour <= 23; hour++) {
          this.hourOptions.push(hour);
        }
      },


    }
  }
</script>

<style lang="less" scoped>
  #container {
    width: 100%;
    height: 700px;
  }

  ::v-deep .marker-route {
    width: 60px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    background-color: red;
  }

  .button {
    color: blue;
    font-size: 18px;
  }

  .input-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
  }

  .divider {
    margin: 0 8px;
  }
</style>

二、结尾

在这里插入图片描述

"喜欢这篇文章吗?别忘了给个点赞哦!您的支持是我创作的动力。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/61950.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

K8S系列文章之 自动化运维利器 Fabric

Fabric 主要用在应用部署与系统管理等任务的自动化&#xff0c;简单轻量级&#xff0c;提供有丰富的 SSH 扩展接口。在 Fabric 1.x 版本中&#xff0c;它混杂了本地及远程两类功能&#xff1b;但自 Fabric 2.x 版本起&#xff0c;它分离出了独立的 Invoke 库&#xff0c;来处理…

SpringBoot第30讲:SpringBoot集成MySQL - MyBatis-Plus基于字段隔离的多租户

SpringBoot第30讲&#xff1a;SpringBoot集成MySQL - MyBatis-Plus基于字段隔离的多租户 本文是SpringBoot第30讲&#xff0c;主要介绍 MyBatis-Plus的基于字段隔离的多租户实现&#xff0c;以及MyBatis-Plus的基于字段的隔离方式实践和原理。 文章目录 SpringBoot第30讲&#…

Qt5.13引入QtWebApp的模块后报错: error C2440: “reinterpret_cast”: 无法从“int”转换为“quintptr”

1、开发环境 Win10-64 qt5.13 msvc2015-64bit-release 2、报错 新建一个demo工程。 引入QtWebApp的httpserver、logging、templateengine三个模块后。 直接运行&#xff0c;&#xff0c;此时报错如下&#xff1a; E:\Qt5.13.1\install\5.13.1\msvc2015_64\include\QtCore…

k8s-服务发现service和ingress

回到目录 service用于集群内部应用的网络调用&#xff0c;处理东西流量 ingress用于集群外部用户访问内部服务&#xff0c;处理南北流量 一 kube-proxy三种代理模式 kubernetes集群中有三层网络&#xff0c;一类是真实存在的&#xff0c;例如Node Network、Pod Network,提供真…

高级web前端开发工程师工作的岗位职责(合集)

高级web前端开发工程师工作的岗位职责1 职责&#xff1a; 1、负责产品web端界面设计与用户体验&#xff0c;包括界面操作、用户交互设计; 2、负责基于Html5的web网页前端开发&#xff0c;要求适配主流浏览器; 3、与后端开发工程师合作&#xff0c;高效完成产品模型的展现及交…

命令模式 Command Pattern 《游戏设计模式》学习笔记

对于一般的按键输入&#xff0c;我们通常这么做&#xff0c;直接if按了什么键&#xff0c;就执行相应的操作 在这里我们是将用户的输入和程序行为硬编码在一起&#xff0c;这是我们很自然就想到的最快的做法。 但是如果这是一个大型游戏&#xff0c;往往我们需要实现一个按键…

Java转换流

文章目录 转换流的理解**InputStreamReader****OutputStreamWriter**练习 引入情况1&#xff1a; 使用FileReader 读取项目中的文本文件。由于IDEA设置中针对项目设置了UTF-8编码&#xff0c;当读取Windows系统中创建的文本文件时&#xff0c;如果Windows系统默认的是GBK编码&a…

Spring Boot3.0(一):入门篇

什么是 Spring Boot Spring Boot 是由 Pivotal 团队提供的全新框架&#xff0c;其设计目的是用来简化新 Spring 应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置&#xff0c;从而使开发人员不再需要定义样板化的配置。 用我的话来理解&#xff0c;就是 Spring…

深入浅出 Typescript

TypeScript 是 JavaScript 的一个超集&#xff0c;支持 ECMAScript 6 标准&#xff08;ES6 教程&#xff09;。 TypeScript 由微软开发的自由和开源的编程语言。 TypeScript 设计目标是开发大型应用&#xff0c;它可以编译成纯 JavaScript&#xff0c;编译出来的 JavaScript …

C# OpenCvSharp 去水印 图像修复

效果 项目 VS2010.net4.0OpenCvSharp3 代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System…

【解放ipad生产力】如何在平板上使用免费IDE工具完成项目开发

我的博客即将同步至腾讯云开发者社区&#xff0c;邀请大家一同入驻&#xff1a;https://cloud.tencent.com/developer/support-plan?invite_code3o19zyy2pneoo 前言 很多人应该会像我一样吧&#xff0c;有时候身边没电脑突然要写项目&#xff0c;发现自己的平板没有一点作用&…

《HeadFirst设计模式(第二版)》第五章代码——单例模式

代码文件目录&#xff1a; 初始版本&#xff1a; package Chapter5_SingletonPattern.origin;/*** Author 竹心* Date 2023/8/5**/public class Singleton {private static Singleton uniqueInstance;private Singleton(){}public static Singleton getInstance(){if(uniqueIn…

C++ 派生类成员的标识与访问——作用域分辨符

在派生类中&#xff0c;成员可以按访问属性分为以下四种&#xff1a; &#xff08;1&#xff09;不可访问成员。这是从基类私有成员继承下来的&#xff0c;派生类或是建立派生类对象的模块都无法访问到它们&#xff0c;如果从派生类继续派生新类&#xff0c;也是无法访问的。 &…

京东开源的、高效的企业级表格可视化搭建解决方案:DripTable

DripTable 是京东零售推出的一款用于企业级中后台的动态列表解决方案&#xff0c;项目基于 React 和 JSON Schema&#xff0c;旨在通过简单配置快速生成页面动态列表来降低列表开发难度、提高工作效率。 DripTable 目前包含以下子项目&#xff1a;drip-table、drip-table-gene…

Qt下开发基于QGIS的应用程序

Qt下开发基于QGIS的应用程序 目的版本说明1、Qt的安装2、MSVC套件与Windows 10 SDK的下载3、QGIS开发有关的库文件下载4、环境搭建5、QGIS开发环境搭建6、展示网页地图 目的 由于有在背景地图上进行动态轨迹&#xff08;曲线&#xff09;显示的需要&#xff0c;故采用QtQGIS的…

MySQL 与MongoDB区别

一、什么是MongoDB呢 ? MongoDB 是由C语言编写的&#xff0c;是一个基于分布式文件存储的开源数据库系统。在高负载的情况下&#xff0c;添加更多的节点&#xff0c;可以保证服务器性能。 MongoDB 旨在为WEB应用提供可扩展的高性能数据存储解决方案。 MongoDB 将数据存储为一…

深入理解ClickHouse跳数索引教程

跳数索引 影响ClickHouse查询性能的因素很多。在大多数场景中&#xff0c;关键因素是ClickHouse在计算查询WHERE子句条件时是否可以使用主键。因此&#xff0c;选择适用于最常见查询模式的主键对于表的设计至关重要。 然而&#xff0c;无论如何仔细地调优主键&#xff0c;不可…

12.物联网操作系统之多任务核心

一。列表及列表项概念以及应用 1.freeRTOS列表介绍 列表项都是由链表生成&#xff0c;想要了解列表项&#xff0c;首先应该把上述的链表都要搞懂。 这是列表项的组件列表。 2.列表及列表项的定义 列表是双向链表构成&#xff0c;原因是双向链表的插入与删除效率高&#xff0c…

第一课-前提-Stable Diffusion 教程

学习 SD 的前提是电脑配置! SD 参考配置: 建议选择台式机 i5 CPU, 内存16GB,N卡 RTX3060, 8G显存以上的配置(最低配) 在此基础上的配置越高越好。 比如,cpu i7 更好,显卡能有 RTX4090 更好,32显存要能有最好,嘿嘿嘿。 如何查看自己的显卡配置? Win+R 输入 “dxdiag…

高斯过程回归 | Matlab实现高斯过程回归预测(Gaussian Process Regression)

文章目录 效果一览文章概述研究内容程序设计参考资料效果一览 文章概述 高斯过程回归 | Matlab实现高斯过程回归多输入单输出预测(Gaussian Process Regression) 研究内容 高斯过程回归(Gaussian Process Regression)是一种基于概率的非参数回归方法,用于建模输入变量和目…
最新文章