Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.c104 if (drmCommandWriteRead(applier->ws->fd, DRM_RADEON_INFO, in radeon_set_fd_access()
148 static bool do_winsys_init(struct radeon_drm_winsys *ws) in do_winsys_init() argument
175 version = drmGetVersion(ws->fd); in do_winsys_init()
188 ws->info.drm_major = version->version_major; in do_winsys_init()
189 ws->info.drm_minor = version->version_minor; in do_winsys_init()
190 ws->info.drm_patchlevel = version->version_patchlevel; in do_winsys_init()
194 if (!radeon_get_drm_value(ws->fd, RADEON_INFO_DEVICE_ID, "PCI ID", in do_winsys_init()
195 &ws->info.pci_id)) in do_winsys_init()
199 switch (ws->info.pci_id) { in do_winsys_init()
200 #define CHIPSET(pci_id, name, cfamily) case pci_id: ws->info.family = CHIP_##cfamily; ws->gen = DRV… in do_winsys_init()
[all …]
Dradeon_drm_bo.c741 struct radeon_drm_winsys *ws = priv; in radeon_bo_slab_alloc() local
768 slab->buffer = radeon_bo(radeon_winsys_bo_create(&ws->base, in radeon_bo_slab_alloc()
784 base_hash = __sync_fetch_and_add(&ws->next_bo_hash, slab->base.num_entries); in radeon_bo_slab_alloc()
793 bo->rws = ws; in radeon_bo_slab_alloc()
944 struct radeon_drm_winsys *ws = radeon_drm_winsys(rws); in radeon_winsys_bo_create() local
955 ws->info.has_virtual_memory && in radeon_winsys_bo_create()
981 entry = pb_slab_alloc(&ws->bo_slabs, size, heap); in radeon_winsys_bo_create()
984 pb_cache_release_all_buffers(&ws->bo_cache); in radeon_winsys_bo_create()
986 entry = pb_slab_alloc(&ws->bo_slabs, size, heap); in radeon_winsys_bo_create()
1007 size = align(size, ws->info.gart_page_size); in radeon_winsys_bo_create()
[all …]
Dradeon_drm_cs.c83 static struct radeon_winsys_ctx *radeon_drm_ctx_create(struct radeon_winsys *ws) in radeon_drm_ctx_create() argument
87 return (struct radeon_winsys_ctx*)ws; in radeon_drm_ctx_create()
96 struct radeon_drm_winsys *ws) in radeon_init_cs_context() argument
100 csc->fd = ws->fd; in radeon_init_cs_context()
164 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)ctx; in radeon_drm_cs_create() local
173 cs->ws = ws; in radeon_drm_cs_create()
177 if (!radeon_init_cs_context(&cs->csc1, cs->ws)) { in radeon_drm_cs_create()
181 if (!radeon_init_cs_context(&cs->csc2, cs->ws)) { in radeon_drm_cs_create()
194 p_atomic_inc(&ws->num_cs); in radeon_drm_cs_create()
257 if (cs->ring_type != RING_DMA || cs->ws->info.has_virtual_memory) { in radeon_lookup_or_add_real_buffer()
[all …]
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c100 static bool do_winsys_init(struct amdgpu_winsys *ws, int fd) in do_winsys_init() argument
116 ws->info.pci_domain = devinfo->businfo.pci->domain; in do_winsys_init()
117 ws->info.pci_bus = devinfo->businfo.pci->bus; in do_winsys_init()
118 ws->info.pci_dev = devinfo->businfo.pci->dev; in do_winsys_init()
119 ws->info.pci_func = devinfo->businfo.pci->func; in do_winsys_init()
123 r = amdgpu_query_gpu_info(ws->dev, &ws->amdinfo); in do_winsys_init()
129 r = amdgpu_query_buffer_size_alignment(ws->dev, &alignment_info); in do_winsys_init()
135 r = amdgpu_query_heap_info(ws->dev, AMDGPU_GEM_DOMAIN_VRAM, 0, &vram); in do_winsys_init()
141 r = amdgpu_query_heap_info(ws->dev, AMDGPU_GEM_DOMAIN_GTT, 0, &gtt); in do_winsys_init()
147 r = amdgpu_query_hw_ip_info(ws->dev, AMDGPU_HW_IP_DMA, 0, &dma); in do_winsys_init()
[all …]
Damdgpu_bo.c52 struct amdgpu_winsys *ws = bo->ws; in amdgpu_bo_wait() local
86 pipe_mutex_lock(ws->bo_fence_lock); in amdgpu_bo_wait()
102 pipe_mutex_unlock(ws->bo_fence_lock); in amdgpu_bo_wait()
108 pipe_mutex_lock(ws->bo_fence_lock); in amdgpu_bo_wait()
116 pipe_mutex_unlock(ws->bo_fence_lock); in amdgpu_bo_wait()
121 pipe_mutex_lock(ws->bo_fence_lock); in amdgpu_bo_wait()
135 pipe_mutex_unlock(ws->bo_fence_lock); in amdgpu_bo_wait()
163 pipe_mutex_lock(bo->ws->global_bo_list_lock); in amdgpu_bo_destroy()
165 bo->ws->num_buffers--; in amdgpu_bo_destroy()
166 pipe_mutex_unlock(bo->ws->global_bo_list_lock); in amdgpu_bo_destroy()
[all …]
Damdgpu_cs.c169 static struct radeon_winsys_ctx *amdgpu_ctx_create(struct radeon_winsys *ws) in amdgpu_ctx_create() argument
179 ctx->ws = amdgpu_winsys(ws); in amdgpu_ctx_create()
182 r = amdgpu_cs_ctx_create(ctx->ws->dev, &ctx->ctx); in amdgpu_ctx_create()
188 alloc_buffer.alloc_size = ctx->ws->info.gart_page_size; in amdgpu_ctx_create()
189 alloc_buffer.phys_alignment = ctx->ws->info.gart_page_size; in amdgpu_ctx_create()
192 r = amdgpu_bo_alloc(ctx->ws->dev, &alloc_buffer, &buf_handle); in amdgpu_ctx_create()
259 return cs->ctx->ws->info.chip_class >= CIK && in amdgpu_cs_has_chaining()
462 static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *ws, struct amdgpu_ib *ib) in amdgpu_ib_new_buffer() argument
495 pb = ws->base.buffer_create(&ws->base, buffer_size, in amdgpu_ib_new_buffer()
496 ws->info.gart_page_size, in amdgpu_ib_new_buffer()
[all …]
Damdgpu_surface.c99 ADDR_HANDLE amdgpu_addr_create(struct amdgpu_winsys *ws) in amdgpu_addr_create() argument
110 regValue.noOfBanks = ws->amdinfo.mc_arb_ramcfg & 0x3; in amdgpu_addr_create()
111 regValue.gbAddrConfig = ws->amdinfo.gb_addr_cfg; in amdgpu_addr_create()
112 regValue.noOfRanks = (ws->amdinfo.mc_arb_ramcfg & 0x4) >> 2; in amdgpu_addr_create()
114 regValue.backendDisables = ws->amdinfo.backend_disable[0]; in amdgpu_addr_create()
115 regValue.pTileConfig = ws->amdinfo.gb_tile_mode; in amdgpu_addr_create()
116 regValue.noOfEntries = ARRAY_SIZE(ws->amdinfo.gb_tile_mode); in amdgpu_addr_create()
117 if (ws->info.chip_class == SI) { in amdgpu_addr_create()
121 regValue.pMacroTileConfig = ws->amdinfo.gb_macro_tile_mode; in amdgpu_addr_create()
122 regValue.noOfMacroEntries = ARRAY_SIZE(ws->amdinfo.gb_macro_tile_mode); in amdgpu_addr_create()
[all …]
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_winsys.c116 do_winsys_init(struct radv_amdgpu_winsys *ws, int fd) in do_winsys_init() argument
131 ws->info.pci_domain = devinfo->businfo.pci->domain; in do_winsys_init()
132 ws->info.pci_bus = devinfo->businfo.pci->bus; in do_winsys_init()
133 ws->info.pci_dev = devinfo->businfo.pci->dev; in do_winsys_init()
134 ws->info.pci_func = devinfo->businfo.pci->func; in do_winsys_init()
138 r = amdgpu_query_gpu_info(ws->dev, &ws->amdinfo); in do_winsys_init()
144 r = amdgpu_query_buffer_size_alignment(ws->dev, &alignment_info); in do_winsys_init()
150 r = amdgpu_query_heap_info(ws->dev, AMDGPU_GEM_DOMAIN_VRAM, 0, &vram); in do_winsys_init()
156 r = amdgpu_query_heap_info(ws->dev, AMDGPU_GEM_DOMAIN_VRAM, in do_winsys_init()
163 r = amdgpu_query_heap_info(ws->dev, AMDGPU_GEM_DOMAIN_GTT, 0, &gtt); in do_winsys_init()
[all …]
Dradv_amdgpu_bo.c41 if (bo->ws->debug_all_bos) { in radv_amdgpu_winsys_bo_destroy()
42 pthread_mutex_lock(&bo->ws->global_bo_list_lock); in radv_amdgpu_winsys_bo_destroy()
44 bo->ws->num_buffers--; in radv_amdgpu_winsys_bo_destroy()
45 pthread_mutex_unlock(&bo->ws->global_bo_list_lock); in radv_amdgpu_winsys_bo_destroy()
55 struct radv_amdgpu_winsys *ws = bo->ws; in radv_amdgpu_add_buffer_to_global_list() local
57 if (bo->ws->debug_all_bos) { in radv_amdgpu_add_buffer_to_global_list()
58 pthread_mutex_lock(&ws->global_bo_list_lock); in radv_amdgpu_add_buffer_to_global_list()
59 LIST_ADDTAIL(&bo->global_list_item, &ws->global_bo_list); in radv_amdgpu_add_buffer_to_global_list()
60 ws->num_buffers++; in radv_amdgpu_add_buffer_to_global_list()
61 pthread_mutex_unlock(&ws->global_bo_list_lock); in radv_amdgpu_add_buffer_to_global_list()
[all …]
Dradv_amdgpu_cs.c39 struct radv_amdgpu_winsys *ws; member
136 cs->ws->base.buffer_destroy(cs->ib_buffer); in radv_amdgpu_cs_destroy()
141 cs->ws->base.buffer_destroy(cs->old_ib_buffers[i]); in radv_amdgpu_cs_destroy()
160 radv_amdgpu_cs_create(struct radeon_winsys *ws, in radv_amdgpu_cs_create() argument
169 cs->ws = radv_amdgpu_winsys(ws); in radv_amdgpu_cs_create()
172 if (cs->ws->use_ib_bos) { in radv_amdgpu_cs_create()
173 cs->ib_buffer = ws->buffer_create(ws, ib_size, 0, in radv_amdgpu_cs_create()
181 cs->ib_mapped = ws->buffer_map(cs->ib_buffer); in radv_amdgpu_cs_create()
183 ws->buffer_destroy(cs->ib_buffer); in radv_amdgpu_cs_create()
194 ws->cs_add_buffer(&cs->base, cs->ib_buffer, 8); in radv_amdgpu_cs_create()
[all …]
/external/mesa3d/src/gallium/winsys/sw/dri/
Ddri_sw_winsys.c67 dri_sw_winsys( struct sw_winsys *ws ) in dri_sw_winsys() argument
69 return (struct dri_sw_winsys *)ws; in dri_sw_winsys()
74 dri_sw_is_displaytarget_format_supported( struct sw_winsys *ws, in dri_sw_is_displaytarget_format_supported() argument
123 dri_sw_displaytarget_destroy(struct sw_winsys *ws, in dri_sw_displaytarget_destroy() argument
134 dri_sw_displaytarget_map(struct sw_winsys *ws, in dri_sw_displaytarget_map() argument
142 struct dri_sw_winsys *dri_sw_ws = dri_sw_winsys(ws); in dri_sw_displaytarget_map()
150 dri_sw_displaytarget_unmap(struct sw_winsys *ws, in dri_sw_displaytarget_unmap() argument
155 struct dri_sw_winsys *dri_sw_ws = dri_sw_winsys(ws); in dri_sw_displaytarget_unmap()
182 dri_sw_displaytarget_display(struct sw_winsys *ws, in dri_sw_displaytarget_display() argument
187 struct dri_sw_winsys *dri_sw_ws = dri_sw_winsys(ws); in dri_sw_displaytarget_display()
[all …]
/external/mesa3d/src/gallium/winsys/sw/kms-dri/
Dkms_dri_sw_winsys.c93 kms_sw_winsys( struct sw_winsys *ws ) in kms_sw_winsys() argument
95 return (struct kms_sw_winsys *)ws; in kms_sw_winsys()
100 kms_sw_is_displaytarget_format_supported( struct sw_winsys *ws, in kms_sw_is_displaytarget_format_supported() argument
109 kms_sw_displaytarget_create(struct sw_winsys *ws, in kms_sw_displaytarget_create() argument
117 struct kms_sw_winsys *kms_sw = kms_sw_winsys(ws); in kms_sw_displaytarget_create()
162 kms_sw_displaytarget_destroy(struct sw_winsys *ws, in kms_sw_displaytarget_destroy() argument
165 struct kms_sw_winsys *kms_sw = kms_sw_winsys(ws); in kms_sw_displaytarget_destroy()
185 kms_sw_displaytarget_map(struct sw_winsys *ws, in kms_sw_displaytarget_map() argument
189 struct kms_sw_winsys *kms_sw = kms_sw_winsys(ws); in kms_sw_displaytarget_map()
275 kms_sw_displaytarget_unmap(struct sw_winsys *ws, in kms_sw_displaytarget_unmap() argument
[all …]
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dfrom_bytes.pass.cpp28 std::wstring ws = myconv.from_bytes('a'); in main() local
29 assert(ws == L"a"); in main()
30 ws = myconv.from_bytes(bs.c_str()); in main()
31 assert(ws == L"\x40003"); in main()
32 ws = myconv.from_bytes(bs); in main()
33 assert(ws == L"\x40003"); in main()
34 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in main()
35 assert(ws == L"\x40003"); in main()
36 ws = myconv.from_bytes(""); in main()
37 assert(ws.size() == 0); in main()
Dto_bytes.pass.cpp27 std::wstring ws(1, L'\x40003'); in main() local
28 std::string bs = myconv.to_bytes(ws[0]); in main()
30 bs = myconv.to_bytes(ws.c_str()); in main()
32 bs = myconv.to_bytes(ws); in main()
34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in main()
/external/pdfium/xfa/fde/xml/
Dfde_xml_imp.cpp399 CFX_WideString ws; in SaveXMLNode() local
402 ws = L"<?xml version=\"1.0\" encoding=\""; in SaveXMLNode()
405 ws += L"UTF-16"; in SaveXMLNode()
407 ws += L"UTF-16be"; in SaveXMLNode()
409 ws += L"UTF-8"; in SaveXMLNode()
411 ws += L"\"?>"; in SaveXMLNode()
412 pXMLStream->WriteString(ws.c_str(), ws.GetLength()); in SaveXMLNode()
414 ws.Format(L"<?%s", pInstruction->m_wsTarget.c_str()); in SaveXMLNode()
415 pXMLStream->WriteString(ws.c_str(), ws.GetLength()); in SaveXMLNode()
421 ws = L" "; in SaveXMLNode()
[all …]
/external/llvm/lib/Target/Mips/
DMipsMSAInstrFormats.td31 bits<5> ws;
38 let Inst{15-11} = ws;
44 bits<5> ws;
51 let Inst{15-11} = ws;
57 bits<5> ws;
64 let Inst{15-11} = ws;
70 bits<5> ws;
77 let Inst{15-11} = ws;
105 bits<5> ws;
110 let Inst{15-11} = ws;
[all …]
/external/libese/esed/
DWeaver.cpp44 EseWeaverSession ws; in getConfig() local
45 ese_weaver_session_init(&ws); in getConfig()
46 EseAppResult res = ese_weaver_session_open(mEse.ese_interface(), &ws); in getConfig()
64 if (ese_weaver_get_num_slots(&ws, &numSlots) != ESE_APP_RESULT_OK) { in getConfig()
70 if (ese_weaver_session_close(&ws) != ESE_APP_RESULT_OK) { in getConfig()
95 EseWeaverSession ws; in write() local
96 ese_weaver_session_init(&ws); in write()
97 if (ese_weaver_session_open(mEse.ese_interface(), &ws) != ESE_APP_RESULT_OK) { in write()
102 if (ese_weaver_write(&ws, slotId, key.data(), value.data()) != ESE_APP_RESULT_OK) { in write()
107 if (ese_weaver_session_close(&ws) != ESE_APP_RESULT_OK) { in write()
[all …]
/external/mesa3d/src/gallium/include/state_tracker/
Dsw_winsys.h69 (*destroy)( struct sw_winsys *ws );
72 (*is_displaytarget_format_supported)( struct sw_winsys *ws,
88 (*displaytarget_create)( struct sw_winsys *ws,
100 (*displaytarget_from_handle)( struct sw_winsys *ws,
109 (*displaytarget_get_handle)( struct sw_winsys *ws,
117 (*displaytarget_map)( struct sw_winsys *ws,
122 (*displaytarget_unmap)( struct sw_winsys *ws,
131 (*displaytarget_display)( struct sw_winsys *ws,
137 (*displaytarget_destroy)( struct sw_winsys *ws,
/external/valgrind/helgrind/
Dhg_wordset.c272 static WordVec* do_ix2vec ( WordSetU* wsu, WordSet ws ) in do_ix2vec() argument
280 tl_assert(ws < wsu->ix2vec_used); /* XXX */ in do_ix2vec()
281 wv = wsu->ix2vec[ws]; in do_ix2vec()
290 static WordVec* do_ix2vec_with_dead ( WordSetU* wsu, WordSet ws ) in do_ix2vec_with_dead() argument
298 tl_assert(ws < wsu->ix2vec_used); /* XXX */ in do_ix2vec_with_dead()
299 wv = wsu->ix2vec[ws]; in do_ix2vec_with_dead()
333 WordSet ws; in add_or_dealloc_WordVec() local
335 ws = wsu->ix2vec_free - &(wsu->ix2vec[0]); in add_or_dealloc_WordVec()
336 tl_assert(wsu->ix2vec[ws] == NULL || is_dead(wsu,wsu->ix2vec[ws])); in add_or_dealloc_WordVec()
337 wsu->ix2vec_free = (WordVec **) wsu->ix2vec[ws]; in add_or_dealloc_WordVec()
[all …]
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DWebSocketReader.java16 package com.squareup.okhttp.internal.ws;
20 import com.squareup.okhttp.ws.WebSocket;
30 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B0_FLAG_FIN;
31 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B0_FLAG_RSV1;
32 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B0_FLAG_RSV2;
33 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B0_FLAG_RSV3;
34 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B0_MASK_OPCODE;
35 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B1_FLAG_MASK;
36 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.B1_MASK_LENGTH;
37 import static com.squareup.okhttp.internal.ws.WebSocketProtocol.OPCODE_BINARY;
[all …]
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c70 wrapper_sw_winsys(struct sw_winsys *ws) in wrapper_sw_winsys() argument
72 return (struct wrapper_sw_winsys *)ws; in wrapper_sw_winsys()
88 wsw_is_dt_format_supported(struct sw_winsys *ws, in wsw_is_dt_format_supported() argument
92 struct wrapper_sw_winsys *wsw = wrapper_sw_winsys(ws); in wsw_is_dt_format_supported()
146 wsw_dt_create(struct sw_winsys *ws, in wsw_dt_create() argument
154 struct wrapper_sw_winsys *wsw = wrapper_sw_winsys(ws); in wsw_dt_create()
180 wsw_dt_from_handle(struct sw_winsys *ws, in wsw_dt_from_handle() argument
185 struct wrapper_sw_winsys *wsw = wrapper_sw_winsys(ws); in wsw_dt_from_handle()
197 wsw_dt_get_handle(struct sw_winsys *ws, in wsw_dt_get_handle() argument
201 struct wrapper_sw_winsys *wsw = wrapper_sw_winsys(ws); in wsw_dt_get_handle()
[all …]
/external/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c223 xlib_is_displaytarget_format_supported(struct sw_winsys *ws, in xlib_is_displaytarget_format_supported() argument
233 xlib_displaytarget_map(struct sw_winsys *ws, in xlib_displaytarget_map() argument
244 xlib_displaytarget_unmap(struct sw_winsys *ws, in xlib_displaytarget_unmap() argument
253 xlib_displaytarget_destroy(struct sw_winsys *ws, in xlib_displaytarget_destroy() argument
378 xlib_displaytarget_display(struct sw_winsys *ws, in xlib_displaytarget_display() argument
458 xlib_destroy(struct sw_winsys *ws) in xlib_destroy() argument
460 FREE(ws); in xlib_destroy()
467 struct xlib_sw_winsys *ws; in xlib_create_sw_winsys() local
469 ws = CALLOC_STRUCT(xlib_sw_winsys); in xlib_create_sw_winsys()
470 if (!ws) in xlib_create_sw_winsys()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dr600_pipe_common.c260 ctx->ws->cs_is_buffer_referenced(ctx->gfx.cs, dst->buf, in r600_need_dma_space()
263 ctx->ws->cs_is_buffer_referenced(ctx->gfx.cs, src->buf, in r600_need_dma_space()
280 if (!ctx->ws->cs_check_space(ctx->dma.cs, num_dw) || in r600_need_dma_space()
291 ctx->ws->cs_is_buffer_referenced(ctx->dma.cs, dst->buf, in r600_need_dma_space()
294 ctx->ws->cs_is_buffer_referenced(ctx->dma.cs, src->buf, in r600_need_dma_space()
351 struct radeon_winsys *ws = rctx->ws; in r600_flush_from_st() local
368 ws->fence_reference(&gfx_fence, rctx->last_gfx_fence); in r600_flush_from_st()
370 ws->cs_sync_flush(rctx->gfx.cs); in r600_flush_from_st()
378 gfx_fence = rctx->ws->cs_get_next_fence(rctx->gfx.cs); in r600_flush_from_st()
419 rctx->ws->fence_reference(fence, rctx->last_sdma_fence); in r600_flush_dma_ring()
[all …]
/external/libcxx/test/std/depr/depr.c.headers/
Dwchar_h.pass.cpp45 wchar_t* ws = 0; in main() local
53 ((void)ws); // Prevent unused warning in main()
56 static_assert((std::is_same<decltype(swprintf(ws, s, L"")), int>::value), ""); in main()
60 static_assert((std::is_same<decltype(vswprintf(ws, s, L"", va)), int>::value), ""); in main()
63 static_assert((std::is_same<decltype(fgetws(ws, 0, fp)), wchar_t*>::value), ""); in main()
77 static_assert((std::is_same<decltype(wcscpy(ws, L"")), wchar_t*>::value), ""); in main()
78 static_assert((std::is_same<decltype(wcsncpy(ws, L"", s)), wchar_t*>::value), ""); in main()
79 static_assert((std::is_same<decltype(wcscat(ws, L"")), wchar_t*>::value), ""); in main()
80 static_assert((std::is_same<decltype(wcsncat(ws, L"", s)), wchar_t*>::value), ""); in main()
84 static_assert((std::is_same<decltype(wcsxfrm(ws, L"", s)), size_t>::value), ""); in main()
[all …]
/external/fio/tools/hist/
Dfiologparser_hist.py23 def weighted_percentile(percs, vs, ws): argument
37 vs, ws = vs[idx], ws[idx] # weights and values sorted by value
38 cdf = 100 * (ws.cumsum() - ws / 2.0) / ws.sum()
57 ws = (ebounds - sbounds) / (end_ts - start_ts)
58 if np.any(np.isnan(ws)):
61 ws[np.where(np.isnan(ws))] = 0.0;
62 return ws
64 def weighted_average(vs, ws): argument
65 return np.sum(vs * ws) / np.sum(ws)
175 def print_all_stats(ctx, end, mn, ss_cnt, vs, ws, mx): argument
[all …]

12345678910>>...18