首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏mythsman的个人博客

    Bloom Filters简介

    Bloom Filter(又叫布隆过滤器)是由B.H.Bloom在1970年提出的一种多哈希函数映射的快速查找算法。该算法的原名叫:“Space/time trade-offs in hash coding with allowable errors”,即一种允许一定容错率的哈希算法,因为在实际应用中经常有这样的情况:普通hash算法相对高额的空间消耗承受不住过大的数据,而实际上对询问的正确性要求又不大。在这种情况下Bloom Filter的时空优越性就体现出来了。 为了说明Bloom Filter存在的重要意义,举一个实例: 假设要你写一个网络蜘蛛(web crawler)。由于网络间的链接错综复杂,蜘蛛在网络间爬行很可能会形成“环”。为了避免形成“环”,就需要知道蜘蛛已经访问过那些URL。比较靠谱的方法是建立一个BitSet,将每个URL经过一个哈希函数映射到某一位。这个方法显然很合理,但是当数据量变得非常庞大的时候单一哈希函数发生冲突的概率太高。若要降低冲突发生的概率到1%,就要将BitSet的长度设置为URL个数的100倍!显然不符合实际。而事实上在这种应用中,少抓了几个网页的代价是很小的,所以其实并没有特别的必要来保证询问的完美正确性。 Bloom Filter算法相对朴素算法的区别就是使用了多个哈希函数,而不是一个。

    64210编辑于 2022-11-14
  • 来自专栏全栈程序员必看

    Route Filters「建议收藏」

    Route Filters The Controller’s Middleware, represents a High-Level processing API, executed by the requested Route Filters How do they work? Let’s say that we want a CSRF filter. In the (new) file app/Filters.php we define it as following: Route::filter('csrf', function($route) { Note that Route Filters are defined using “Route::filter()” How to use this Filter? The key filters’ assign to the value of a ‘|’ separated string of used Route Filters, and the key ‘uses

    48810编辑于 2022-08-25
  • 来自专栏用户1998800的专栏

    UniApp中使用filters

    { kx_list: { } } }, filters

    74210编辑于 2023-07-24
  • 来自专栏全栈程序员必看

    Spam Filters「建议收藏」

    &size=m&text=Spam%20Filters&type=share&url=http%3A%2F%2Ffreecode.com%2Farticles%2Fspam-filters&via=freecode_com Some Spam Filters In order to compare some spam filters, a number of filters had to be selected from more versatile than other Bayesian filters. used to train the filters that required training. Conclusion The Bayesian filters, after training, offer better recall than the two heuristic filters.

    56310编辑于 2022-08-31
  • 来自专栏全栈程序员必看

    Fiddler工具之Filters

    Fiddler工具之Filters Fiddler是一个强大的抓包工具,可以抓取Http/Https协议的数据包,也可以实现截包、过滤包,修改包等等,今天我们一起学习一下Fildder中Filters 功能的滤过包和截包; 1、首先打开Fiddler主界面,查看右侧功能区选择Filfters标签,勾选Use Filters复选框; (图1) Hosts配置 2、Fiddler默认是会拦截所有的数据包

    2.4K20编辑于 2022-08-26
  • 来自专栏飞雪无情的博客

    Android Intents and Intent Filters(二)

    标表示你的应用会展示在启动列表页面,经常和android.intent.action.MAIN搭配使用 下面通过一个例子来说明Category的检测,项目名为Intents,应用名为Intents and Filters

    60430发布于 2018-08-28
  • 来自专栏python3

    3-weka.filters.unsup

    使用weka API 对数据进行规范化处理 DataSource source = null;             Instances instances = null;          try {              source = new DataSource(fileName);              instances = source.getDataSet();                instances.setClassIndex(instances.numAttribu

    56120发布于 2020-01-15
  • 来自专栏全栈程序员必看

    maven的资源过滤filters

    -- 指定使用的 filter --> <filter>src/main/filters/aaa.properties</filter> </filters> true</filtering> </resource> </resources> </build> </project> 此时去掉了profiles,直接用filters profile> </profiles> <build> <finalName>idea-maven-introduce</finalName> <filters -- 指定使用的 filter --> <filter>src/main/filters/${dev.name}.properties</filter> </filters 总结 有关知识点的内容讲解有如下: – maven profiles标签的使用 – resources 资源标签的使用 – filters 标签的使用 发布者:全栈程序员栈长,转载请注明出处:https

    2.6K20编辑于 2022-08-26
  • 来自专栏又见苍岚

    Bilateral Filters 双边滤波

    双边滤波(Bilateral filter)是一种可以保边去噪的滤波器。之所以可以达到此去噪效果,是因为滤波器是由两个函数构成。一个函数是由几何空间距离决定滤波器系数。另一个由像素差值决定滤波器系数。

    1.1K20编辑于 2022-08-09
  • 来自专栏飞雪无情的博客

    Android Intents and Intent Filters(一)

    项目名为Intents,应用名为Intents and Filters,运行在Android2.2版本上.主启动Activity为IntentsTestList IntentsTestList代码如下:

    67330发布于 2018-08-28
  • 来自专栏余生大大

    TMOS系统之Packet Filters

     Packet Filters简介 Packet Filters也称为包过滤器,它在BIG-IP中的作用为数据包过滤器通过指定 BIG-IP ®系统接口是否应根据指定的标准接受或拒绝某些数据包来增强网络安全性

    97770编辑于 2022-11-02
  • 来自专栏mythsman的个人博客

    Garbled Bloom Filters算法简述

    简述 Garbled Bloom Filters(GBF) 算法是Bloom Filters (BF)算法的变形,并且结合了Shamir的信息分享算法,更好的解决了hash冲突的问题其形式上是将Bloom Filters算法中的BitSet数组转换成了字符串数组,数组中的每一个字符串长度为安全参数\lambda,可以通过调节这个参数来获得想要的安全性。 该算法同Bloom Filters 一样,是一种有一定容错率的hash算法,对于存在于集合中的元素查询返回的值总是true,而对于不在集合中的元素查询的返回值大多为假,这里判断失误的概率是关于安全参数\

    1.5K10编辑于 2022-11-14
  • 来自专栏飞雪无情的博客

    Android Intents and Intent Filters(三)

    开发实例-拨打电话,text阅读器和图片查看器 下面通过一个例子来演示data的检测,项目名为Intents,应用名为Intents and Filters,运行在Android2.2版本上.主启动Activity 更详细(繁琐)的介绍请参考doc Intents and Intent Filters总结 Android提供了以Intent的方式调用Android设备的内置Google应用,比如打电话,调用Google

    99130发布于 2018-08-28
  • 来自专栏阿杜的世界

    Spring Boot:定制servlet filters

    package com.test.bookpub; import org.apache.catalina.filters.RemoteIpFilter; import org.springframework.context.annotation.Bean

    1.2K10发布于 2018-08-06
  • 来自专栏Vue源码 & 前端进阶体系

    【Vue原理】Filters - 源码版

    源码版,白话版助于理解工作原理,源码版助于了解内部详情,让我们一起学习吧 研究基于 Vue版本 【2.5.17】 如果你觉得排版难看,请点击 下面链接 或者 拉到 下面关注公众号也可以吧 【Vue原理】Filters data(){ return { parentName:111 } }, filters $options, 'filters', id, true ) || identity } this.options 会拿到当前组件的所有选项 你问我为什么? $options 就是 实例的 options 啦 接着,调用 resolveAsset ,目的就是拿到 组件选项中的 具体 filter 传入 当前组件的选项 ,指定要其选项 filters ,指定具体 filter 名 function resolveAsset( options, type, id, warnMissing ) { // g:拿到 filters

    68230发布于 2019-08-02
  • 来自专栏iRF射频前端产业观察

    Simulation of SAW & BAW Resonators for RF Filters

    That’s why resonators are a key component in Radio-Frequency Filters or “RF Filters”. The number of RF Filters in a 5G smartphone is around 50. SAW RF filters have low Q-factor values and require temperature compensation method. In theory, we would like the RF filter to have a well-defined resonant frequency, but in reality, RF filters Surface Acoustic Wave Filters use surface waves to filter a signal.

    77610编辑于 2022-12-20
  • 来自专栏全栈程序员必看

    django_filters实现数据过滤

    ='id') machine_id = django_filters.CharFilter(field_name='machine_id') city = django_filters.CharFilter ='created_at', lookup_expr='lt') problem_isnull = django_filters.BooleanFilter(field_name='problem ', lookup_expr='isnull') name = django_filters.CharFilter(lookup_expr='iexact') # iexact表示精确匹配, 并且忽略大小写 author = django_filters.CharFilter(lookup_expr='icontains') #icontains表示模糊查询(包含),并且忽略大小写 price = django_filters.NumberFilter(look_expr='exact') #exact表示精确匹配 task_res_state = django_filters.CharFilter

    1.1K10编辑于 2022-08-31
  • 来自专栏全栈程序员必看

    vue filters 是什么?怎么使用?

    vue filters 是什么? 首先:filter翻译成中文是过滤器的意思。 而在Vue中作用其实就是对字段进行预处理 怎么使用呢? 就用一个小Demo,讲解一下! ,把“world”添加上去: filters:{ sayHello(demo){ return demo+" world!!!" } }, 最后调用filters方法: { {demo | sayHello}} 页面上就打印出我们想要的“Hello world!!!” 实现很easy! 如果不用filters,是不是有多少个array就得写多少个forEach方法 而用filters,多个array跟一个array是一样的。 这里就不示例了,感兴趣的可以自己动手写一写! -- 不用filters --> <!

    58320编辑于 2022-08-31
  • 来自专栏张善友的专栏

    ASP.NET MVC Action Filters

    在看这篇Fun with Http Headers in ASP.NET MVC Action Filters的时候,提到了 Roni Schuetz在codeplex上创建的一个项目ASP.NET MVC Action Filters。 关于Action Filter的具体内容可参考 理解ASP.NET MVC Framework Action Filters(翻的)。

    1.4K60发布于 2018-01-22
  • 来自专栏码匠的流水账

    聊聊spring.cloud.gateway.default-filters

    序 本文主要研究下spring.cloud.gateway.default-filters 配置 { "sourceType": "org.springframework.cloud.gateway.config.GatewayProperties ", "name": "spring.cloud.gateway.default-filters", "description": "List of filter definitions "type": "java.util.List<org.springframework.cloud.gateway.filter.FilterDefinition>" } default-filters default-filter配置的格式,首先用=分割,取出filter的名称,然后=右边是该filter的参数 实例 spring: cloud: gateway: default-filters SetRequestHeaderGatewayFilterFactory SetResponseHeaderGatewayFilterFactory 小结 spring.cloud.gateway.default-filters

    3.7K10发布于 2018-09-17
领券